mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 13:47:43 +00:00
lib.isDerivation: Simplify
This commit is contained in:
parent
74be820bb6
commit
3ddac7a41a
@ -327,7 +327,7 @@ rec {
|
||||
isDerivation "foobar"
|
||||
=> false
|
||||
*/
|
||||
isDerivation = x: isAttrs x && x ? type && x.type == "derivation";
|
||||
isDerivation = x: x.type or null == "derivation";
|
||||
|
||||
/* Converts a store path to a fake derivation. */
|
||||
toDerivation = path:
|
||||
|
Loading…
Reference in New Issue
Block a user