this post was submitted on 11 Oct 2024
7 points (100.0% liked)
Nix / NixOS
2743 readers
16 users here now
Main links
Videos
founded 2 years ago
MODERATORS
I'm also not a nix expert and I'm not too familiar with Haskell build ecosystem, but doesn't the buildTarget argument do what you need?
https://nixos.org/manual/nixpkgs/stable/#haskell-derivation-args (it's the last on the list)
Name of the executable or library to build and install. If unset, all available targets are built and installed.
That's the thing you want to build (a single project may generate multiple executables - eg. a server and a client) so it won't help in this case but... I must say, I am impressed and really grateful that you went and looked that up for me! Thanks, mate!
In case anyone comes here with the same problem, the solution is:
attoparsec-aeson = haskellPackages.mkDerivation {
...
postUnpack = ''
mv source source-aeson
cp -rL source-aeson/attoparsec-aeson source
rm -fr source-aeson
'';
...
};
```*___*