nix shenanigans

This commit is contained in:
nek0 2020-02-06 05:10:56 +01:00
parent 3b500150ef
commit d21cc70759
1 changed files with 11 additions and 6 deletions

View File

@ -5,13 +5,17 @@ let
{ niv = import sources.niv {}; # use the sources :)
};
# Import the Haskell.nix library,
#pkgs = import <nixpkgs> (import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz));
pkgs = import sources.nixpkgs (
pkgs1 = import sources.nixpkgs {
overlays = [ overlay ];
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.
my-pkgs = import ./pkgs.nix;
@ -31,4 +35,5 @@ let
];
};
in pkgSet.config.hsPkgs // { _config = pkgSet.config; }
in pkgSet.config.hsPkgs //
{ _config = pkgSet.config; }