getStatic
lib.attrsets.getStatic
Docs pulled from | This Revision | about 1 hour ago
Get a package's static
output.
If the output does not exist, fallback to .lib
, then to .out
, and then to the default.
Inputs
pkg
-
The package whose
static
output will be retrieved.
Type
getStatic :: Derivation -> Derivation
Examples
lib.attrsets.getStatic
usage example
"${lib.getStatic pkgs.glibc}"
=> "/nix/store/00000000000000000000000000000000-glibc-2.39-52-static"
Noogle detected
Implementation
The following is the current implementation of this function.
getStatic = getFirstOutput [ "static" "lib" "out" ];