forked from mirrors/nixpkgs
haskell-generic-builder: add a passthru attribute 'isHaskellLibrary' to every derivation
The presence of this attribute allows us to recognize Haskell derivations. Furthermore, we can use it to distinguish libraries from executables (which is useful for the code that's generating the wrapper).
This commit is contained in:
parent
a3c351b98a
commit
5d5b51dfc0
|
@ -250,6 +250,8 @@ stdenv.mkDerivation ({
|
|||
|
||||
inherit pname version;
|
||||
|
||||
isHaskellLibrary = hasActiveLibrary;
|
||||
|
||||
env = stdenv.mkDerivation {
|
||||
name = "interactive-${optionalString hasActiveLibrary "haskell-"}${pname}-${version}-environment";
|
||||
nativeBuildInputs = [ ghcEnv systemBuildInputs ];
|
||||
|
|
Loading…
Reference in a new issue