mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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 New Issue
Block a user