Nix Shell - Conditionally Include Package depending on Host Platform

I’m not sure why I thought it was pkgs.isLinux.

Try pkgs.stdenv.isLinux instead.

$ nix eval --impure --expr '(import <nixpkgs> {}).stdenv.isLinux'
true
1 Like