-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
23 lines (23 loc) · 733 Bytes
/
Copy pathshell.nix
File metadata and controls
23 lines (23 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pinned ? false
, nixpkgs ? import (if pinned
then ./nix/nixpkgs
else <nixpkgs>) {}
, compiler ? import ./nix/default-compiler.nix
, tools ? false
, local ? false
}:
let
pkgs = nixpkgs.pkgs;
drv = import ./nix/package.nix { inherit pinned nixpkgs compiler local; };
ghc = import ./nix/ghc.nix { inherit nixpkgs compiler local; };
extras = [
pkgs.cabal-install
];
drv' = pkgs.haskell.lib.overrideCabal
drv
(old: {
libraryHaskellDepends = old.libraryHaskellDepends ++ extras;
doHaddock = false;
});
in
drv'.env