From ffe90311294ae0867e1fd64ee30bcf726d1a53f8 Mon Sep 17 00:00:00 2001 From: Peng Guanwen Date: Tue, 31 Jan 2023 17:56:23 +0800 Subject: [PATCH] Use buitins.currentSystem --- pkgs/tools/nix/info/info.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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() {