nix shenanigans
This commit is contained in:
parent
3b500150ef
commit
d21cc70759
1 changed files with 11 additions and 6 deletions
17
default.nix
17
default.nix
|
@ -5,13 +5,17 @@ let
|
||||||
{ niv = import sources.niv {}; # use the sources :)
|
{ niv = import sources.niv {}; # use the sources :)
|
||||||
};
|
};
|
||||||
|
|
||||||
# Import the Haskell.nix library,
|
pkgs1 = import sources.nixpkgs {
|
||||||
#pkgs = import <nixpkgs> (import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz));
|
|
||||||
pkgs = import sources.nixpkgs (
|
|
||||||
overlays = [ overlay ];
|
overlays = [ overlay ];
|
||||||
config = {};
|
config = {};
|
||||||
import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz)
|
#import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz)
|
||||||
);
|
};
|
||||||
|
# Import the Haskell.nix library,
|
||||||
|
pkgs2 = import <nixpkgs>
|
||||||
|
(import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz))
|
||||||
|
;
|
||||||
|
|
||||||
|
pkgs = pkgs1 // pkgs2;
|
||||||
|
|
||||||
# Import the file you will create in the stack-to-nix or cabal-to-nix step.
|
# Import the file you will create in the stack-to-nix or cabal-to-nix step.
|
||||||
my-pkgs = import ./pkgs.nix;
|
my-pkgs = import ./pkgs.nix;
|
||||||
|
@ -31,4 +35,5 @@ let
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
in pkgSet.config.hsPkgs // { _config = pkgSet.config; }
|
in pkgSet.config.hsPkgs //
|
||||||
|
{ _config = pkgSet.config; }
|
||||||
|
|
Loading…
Reference in a new issue