lib.hardware
lib.hardware:
Section titled “lib.hardware:”lib.hardware.isx86Linux
Section titled “lib.hardware.isx86Linux”check if the host platform is linux and x86
Arguments
Section titled “Arguments”- [pkgs] the package set
isx86Linux :: AttrSet -> BoolExample
Section titled “Example”isx86Linux pkgs=> truelib.hardware.ldTernary
Section titled “lib.hardware.ldTernary”ldTernary, short for linux darwin ternary
Inputs
Section titled “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
ldTernary :: AttrSet -> Any -> Any -> AnyExample
Section titled “Example”ldTernary pkgs "linux" "darwin"=> "linux"