isDerivation
lib.isDerivation
Docs pulled from | This Revision | 35 minutes ago
Check whether the argument is a derivation. Any set with
{ type = "derivation"; }
counts as a derivation.
Inputs
value
-
Value to check.
Type
isDerivation :: Any -> Bool
Examples
lib.attrsets.isDerivation
usage example
nixpkgs = import <nixpkgs> {}
isDerivation nixpkgs.ruby
=> true
isDerivation "foobar"
=> false