diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-03-09 15:48:30 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-03-09 15:48:30 +0100 |
commit | 3ddac7a41a3b755e2317a3e9ba2b2e61b57b9fb3 (patch) | |
tree | 08332b258f0cbe2e3cf27824ab0e7088958b851e | |
parent | 74be820bb625725ca92b8c6c32dc4b6d0010de89 (diff) |
lib.isDerivation: Simplify
-rw-r--r-- | lib/attrsets.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index a88947b458588..c0d3ede73d0e6 100644 --- a/lib/attrsets.nix +++ b/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: |