lib.hardware:
lib.hardware.isx86Linux
check if the host platform is linux and x86
Arguments
- [pkgs] the package set
Type
isx86Linux :: AttrSet -> Bool
Example
isx86Linux pkgs
=> true
lib.hardware.ldTernary
ldTernary, short for linux darwin ternary
Inputs
- [pkgs] is the package set
- [l] the value to return if the host platform is linux
- [d] the value to return if the host platform is darwin
Type
ldTernary :: AttrSet -> Any -> Any -> Any
Example
ldTernary pkgs "linux" "darwin"
=> "linux"