haskellPackages.mkDerivation: passthru
attributes for executables, testExecutables and benchExecutables
#315129
Labels
passthru
attributes for executables, testExecutables and benchExecutables
#315129
Hey 👋
I've recently migrated a project from haskell.nix to nixpkgs/cabal2nix.
One thing I found quite useful in haskell.nix was the ability to directly reference executables, test executables and benchmark executables, e.g.:
Cabal:
I had a look at
fromPackageDescription
, as well as thePretty
instance ofDerivation
,and I think it wouldn't be too hard to generate something like this:
What do you think?
Am I missing something? Would you consider this a useful feature?
An obvious downside would be the need for
my-package
to be passed in viacallPackage
.This could be mitigated by providing executable names instead of derivations.
The text was updated successfully, but these errors were encountered: