lib.isDerivation: Simplify

This commit is contained in:
Robert Hensing 2022-03-09 15:48:30 +01:00
parent 74be820bb6
commit 3ddac7a41a

View file

@ -327,7 +327,7 @@ rec {
isDerivation "foobar" isDerivation "foobar"
=> false => 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. */ /* Converts a store path to a fake derivation. */
toDerivation = path: toDerivation = path: