-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
31 lines (24 loc) · 856 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
let
inherit (nixpkgs) pkgs;
ptrace = pkgs.haskell.packages.${compiler}.callPackage ./ptrace {};
trace = pkgs.haskell.packages.${compiler}.callPackage ./trace {};
f = { mkDerivation, base, binary, bounded-tchan, bytestring
, containers, process, split, stdenv, stm, trace, transformers
, unix
}:
mkDerivation {
pname = "tachyon";
version = "0.1";
src = ./.;
isLibrary = false;
isExecutable = true;
buildDepends = [
base binary bounded-tchan bytestring containers process split stm
trace transformers unix
];
license = stdenv.lib.licenses.mit;
};
drv = pkgs.haskell.packages.${compiler}.callPackage f {trace = trace;};
in
if pkgs.lib.inNixShell then drv.env else drv