nh2 / static-haskell-nix

easily build most Haskell programs into fully static Linux executables
389 stars 36 forks source link

Build of stack project failing #112

Open m-col opened 2 years ago

m-col commented 2 years ago

Hi there. I am trying to build a small stack project (here, 'static' branch) following the example project. Unfortunately when I try to build, I get this error:

...
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-9.0.1 cabal://zstd-0.1.3.0
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-9.0.1 cabal://ztail-1.2.0.2
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-9.0.1 /tmp/gitserve/gitserve/
stack2nix: post-process: cannot replace name binding Bind (Identifier "lua") (Path [Identifier "pkgs",Identifier "lua"]) by Bind (Identifier "lua5_3") (Path [Identifier "pkgs",Identifier "lua5_3"]) because it's not found in set fromList []
CallStack (from HasCallStack):
  error, called at src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs:213:27 in cabal2nix-2.17.0-7btmY8pw4WqE6eYg0iDQgh:Distribution.Nixpkgs.Haskell.FromCabal.PostProcess

I'm very new to nix so perhaps there is an obvious, but any advice would be appreciated! Do you know if this could be a project with my default.nix, or the project?