Hi! I am struggling trying to run hakyll right now.
I tried to follow your tutorial, however you did not specify the commit hash of nixpkgs you are using and in the current nixpkgs-unstable
the package haskellPackages.hakyll
is marked as broken (and indead breaks when I allow broken builds). I had to pass the extra option
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-20.09.tar.gz --pure -p haskellPackages.hakyll --run "hakyll-init ."
to do the bootstrapping… and make analogous changes for the call to niv
:
niv update nixpkgs -o NixOS -r release-20.09 -b release-20.09
Thanks to that, I managed to go one step further and now I am stuck at:
$ nix-build --show-trace
building '/nix/store/ngkkipv39p0mcj5qsjw9vmrm4bqmr9k6-cabal2nix-website_perso_hs.drv'...
installing
cabal2nix: nix-prefetch-url: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
builder for '/nix/store/ngkkipv39p0mcj5qsjw9vmrm4bqmr9k6-cabal2nix-website_perso_hs.drv' failed with exit code 1
error: while evaluating the attribute 'project' at /home/cyril/git/website_perso_hs/master/release.nix:31:10:
while evaluating the attribute 'website_perso_hs' at /home/cyril/git/website_perso_hs/master/release.nix:22:7:
while evaluating 'callCabal2nix' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:216
:32, called from /home/cyril/git/website_perso_hs/master/release.nix:22:26:
while evaluating 'callCabal2nixWithOptions' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-
set.nix:201:66, called from /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:216:38:
while evaluating 'overrideCabal' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/lib.nix:37:24, called fr
om /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:212:10:
while evaluating 'callPackageKeepDeriver' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-se
t.nix:157:33, called from /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:212:25:
while evaluating 'overrideCabal' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/lib.nix:37:24, called fr
om /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:158:5:
while evaluating 'callPackage' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:114:2
2, called from /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:158:20:
while evaluating 'callPackageWithScope' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.
nix:74:37, called from /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:114:28:
while evaluating 'makeOverridable' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/lib/customisation.nix:67:24, called from /nix/store/7sv
wiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:97:8:
while evaluating 'drvScope' at /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:87:18, c
alled from /nix/store/7svwiz67sghmhlpddsnarm0jhb5zvds3-nixpkgs-src/lib/customisation.nix:69:16:
build of '/nix/store/ngkkipv39p0mcj5qsjw9vmrm4bqmr9k6-cabal2nix-website_perso_hs.drv' failed
Still trying to understand this one.
Best,
–
Cyril