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:
Peter Simons 2015-02-22 20:42:08 +01:00
parent a3c351b98a
commit 5d5b51dfc0

View File

@ -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 ];