From 5b03d0a67578862a658e3bdbef2ee6c0d926f125 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 22 May 2019 10:28:01 -0300 Subject: Use pinned version of hakyll Current unstable is marked as broken. Also see: - https://github.com/NixOS/nixpkgs/pull/61593 --- default.nix | 10 ++++++++-- 1 file 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 { }; + pkgsUnstable = import { }; + 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 -- cgit v1.2.3