Skip to content

Instantly share code, notes, and snippets.

@EncodePanda
Created January 7, 2021 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EncodePanda/cef02e88f0fa9e8fcb949a93fc06b8e5 to your computer and use it in GitHub Desktop.
Save EncodePanda/cef02e88f0fa9e8fcb949a93fc06b8e5 to your computer and use it in GitHub Desktop.

default.nix

{ pkgs ? import ./haskell-pkgs.nix
, haskellCompiler ? "ghc8102"
}:
pkgs.haskell-nix.cabalProject {
  src = pkgs.haskell-nix.haskellLib.cleanGit {
    name = "foo-bar";
    src = ./.;
  };
  compiler-nix-name = haskellCompiler;
}

trace

trace: To materialize the output entirely, pass a writable path as the `materialized` argument and pass that path to /nix/store/9vc26yinkqyhyyywcqm4pkcqh1l5572j-generateMaterialized
error: while evaluating the attribute 'buildInputs' of the derivation 'ghc-shell-for-foo-bar' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/builder/shell-for.nix:118:5:
while evaluating 'getOutput' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:464:23, called from undefined position:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/pkgs/stdenv/generic/make-derivation.nix:142:17, called from undefined position:
while evaluating anonymous function at /Users/rabbit/projects/foo-bar/hlint.nix:1:1, called from /Users/rabbit/projects/foo-bar/shell.nix:7:11:
while evaluating 'stackProject' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/overlays/haskell.nix:555:24, called from /Users/rabbit/projects/foo-bar/hlint.nix:5:12:
while evaluating the attribute 'hsPkgs' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/overlays/haskell.nix:502:15:
while evaluating the attribute 'hsPkgs' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/overlays/haskell.nix:547:39:
while evaluating the attribute 'hsPkgs' at undefined position:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:84:45, called from undefined position:
while evaluating the attribute 'value' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:379:9:
while evaluating the option `hsPkgs':
while evaluating the attribute 'mergedValue' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:411:5:
while evaluating the attribute 'values' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:405:9:
while evaluating the attribute 'values' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:505:7:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:391:28, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:391:17:
while evaluating 'dischargeProperties' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:464:25, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:392:62:
while evaluating the attribute 'value' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:277:44:
while evaluating the attribute 'packages' at undefined position:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:84:45, called from undefined position:
while evaluating the attribute 'value' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:379:9:
while evaluating the option `packages':
while evaluating the attribute 'mergedValue' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:411:5:
while evaluating the attribute 'values' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:405:9:
while evaluating the attribute 'values' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:505:7:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:391:28, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:391:17:
while evaluating 'dischargeProperties' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:464:25, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:392:62:
while evaluating the attribute 'value' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/modules.nix:277:44:
while evaluating 'filterAttrs' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:124:23, called from /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/modules/plan.nix:279:8:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:125:29, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:125:18:
while evaluating anonymous function at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/modules/plan.nix:279:28, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:125:62:
while evaluating the attribute 'ghc-lib-parser' at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:344:7:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:395:24, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:344:15:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:395:24, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:344:15:
while evaluating anonymous function at /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:425:38, called from /nix/store/x0vxvwcf9hja4m9x73ajrz3210r04f8y-source/lib/attrsets.nix:398:12:
while evaluating anonymous function at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:72:53, called from undefined position:
while evaluating 'expand-paths' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:68:28, called from /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:72:59:
while evaluating 'isPath' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:53:23, called from /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:68:38:
while evaluating 'inject-revision' at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:63:31, called from /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/package-set.nix:72:73:
while evaluating anonymous function at /nix/store/jklay9mk9f8fiw8npd13808y4kis0b8w-source/lib/import-and-filter-project.nix:24:52, called from undefined position:
attribute '8.10.3.20201220' missing, at /nix/store/s8szsddr17c3gyp78ml18h6kbvkpwr6z-source-stack-to-nix-pkgs/default.nix:5:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment