diff options
author | EuAndreh <eu@euandre.org> | 2019-05-22 10:28:01 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-05-22 13:41:37 -0300 |
commit | 5b03d0a67578862a658e3bdbef2ee6c0d926f125 (patch) | |
tree | 59b0f1c67cdf2210468a1002562e6e4b088f6772 /default.nix | |
parent | Check spelling with hunspell and fix current errors (diff) | |
download | euandre.org-5b03d0a67578862a658e3bdbef2ee6c0d926f125.tar.gz euandre.org-5b03d0a67578862a658e3bdbef2ee6c0d926f125.tar.xz |
Use pinned version of hakyll
Current unstable is marked as broken.
Also see:
- https://github.com/NixOS/nixpkgs/pull/61593
Diffstat (limited to '')
-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 |