I'm trying build the master branch from source in an existing nix project:
import
(pkgs.fetchFromGitHub
{
owner = "andyarvanitis";
repo = "purescript-native";
rev = "7a3f114fb158a250c6130c93752719b6d69c606a";
sha256 = "1j0d25g5j3givf4shhnvnxqj54jjxzsj2sdm53xcirp7d9w78hmj";
})
{}
I get the error attribute 'haskell-nix' missing, at /nix/store/jbhar7ldha5r2dmxqj0j912i2k7zvn9k-source/default.nix:18:1
I tried copying the pkgs.haskell.lib.buildStackProject expression from stack.nix directly into my project, but I got different error from stack
Received ExitFailure 1 when running Raw command: /private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5.temp/ghc-8.6.5/configure --prefix=/private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5/
Run from: /private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5.temp/ghc-8.6.5/
Error: Error encountered while configuring GHC with
/private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5.temp/ghc-8.6.5/configure --prefix=/private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5/
run in /private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5.temp/ghc-8.6.5/
The following directories may now contain files, but won't be used by stack:
- /private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5.temp/
- /private/var/folders/8b/yry_95qs2n1f4kpz_r94606w0000gn/T/nix-build-default-stack-shell.drv-0/.stack/programs/x86_64-osx-nix/ghc-8.6.5/
For more information consider rerunning with --verbose flag
It suggests adding the verbose flag to debug further, but I'm not sure how to pass that down from nix.
Is building the project like this not a normal pattern? I'm not too familiar with nix yet.
I'm trying build the master branch from source in an existing nix project:
I get the error
attribute 'haskell-nix' missing, at /nix/store/jbhar7ldha5r2dmxqj0j912i2k7zvn9k-source/default.nix:18:1I tried copying the
pkgs.haskell.lib.buildStackProjectexpression from stack.nix directly into my project, but I got different error from stackIt suggests adding the verbose flag to debug further, but I'm not sure how to pass that down from nix.
Is building the project like this not a normal pattern? I'm not too familiar with nix yet.