Skip to content

lib.hardware

check if the host platform is linux and x86

  • [pkgs] the package set
isx86Linux :: AttrSet -> Bool
isx86Linux pkgs
=> true

ldTernary, short for linux darwin ternary

  • [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 -> Any
ldTernary pkgs "linux" "darwin"
=> "linux"