diff --git a/pkgs/tools/nix/info/info.sh b/pkgs/tools/nix/info/info.sh index 64afac8f7553..6ec827350469 100755 --- a/pkgs/tools/nix/info/info.sh +++ b/pkgs/tools/nix/info/info.sh @@ -69,14 +69,8 @@ nixev() { nix-instantiate --eval --strict -E "$1" } -# use `nix eval` command -nixev2() { - nix eval --raw "$1" -} - desc_system() { - nixev '(import {}).stdenv.hostPlatform.system' 2>/dev/null || - nixev2 'nixpkgs#stdenv.hostPlatform.system' + nixev 'builtins.currentSystem' } desc_host_os() {