diff options
-rw-r--r-- | default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/default.nix b/default.nix index bbb718a..3f814b9 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,11 @@ let - pkgs = import <nixpkgs> { }; + pkgsUnstable = import <nixpkgs> { }; + pkgsPinned = import (pkgsUnstable.fetchzip { + url = "https://github.com/NixOS/nixpkgs/archive/18.03.zip"; + sha256 = "0hk4y2vkgm1qadpsm4b0q1vxq889jhxzjx3ragybrlwwg54mzp4f"; + }) { }; + pkgs = pkgsUnstable; + rootSrc = pkgs.nix-gitignore.gitignoreSource [] ./.; nixfmt = import (builtins.fetchTarball "https://github.com/serokell/nixfmt/archive/master.tar.gz") { }; @@ -11,7 +17,7 @@ let src = ./hakyll; phases = "unpackPhase buildPhase"; buildInputs = - [(pkgs.haskellPackages.ghcWithPackages (p: with p; [hakyll]))]; + [(pkgsPinned.haskellPackages.ghcWithPackages (p: with p; [hakyll]))]; buildPhase = '' mkdir -p $out/bin ghc -O2 -dynamic --make Main.hs -o $out/bin/build-site |