Use buitins.currentSystem
This commit is contained in:
parent
8bda2c3acc
commit
ffe9031129
1 changed files with 1 additions and 7 deletions
|
@ -69,14 +69,8 @@ nixev() {
|
|||
nix-instantiate --eval --strict -E "$1"
|
||||
}
|
||||
|
||||
# use `nix eval` command
|
||||
nixev2() {
|
||||
nix eval --raw "$1"
|
||||
}
|
||||
|
||||
desc_system() {
|
||||
nixev '(import <nixpkgs> {}).stdenv.hostPlatform.system' 2>/dev/null ||
|
||||
nixev2 'nixpkgs#stdenv.hostPlatform.system'
|
||||
nixev 'builtins.currentSystem'
|
||||
}
|
||||
|
||||
desc_host_os() {
|
||||
|
|
Loading…
Reference in a new issue