lib.isDerivation: Simplify

main
Robert Hensing 2 years ago
parent 74be820bb6
commit 3ddac7a41a
  1. 2
      lib/attrsets.nix

@ -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…
Cancel
Save