this post was submitted on 22 Aug 2023
1 points (100.0% liked)

Nix / NixOS

1982 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

I've got a small haskell project and I am building it using a flake using cabal2nix based on a package.yaml file.

nix build works fine, but I have trouble with my nix develop shell. The shell is built using shellFor from haskellPackages.

Is it possible to construct a shell that contains all dependencies to build the package, but not the package itself? I tried returning the buildInputs from the packages function, but that didn't seem to have any effect. When I return my package from that function, all dependencies are available, however the package is also built - is that how it is supposed to be?

#nix #haskell

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here