Merge pull request #210864 from peng1999/nix-info-patch

nix-info: fix error when no channel installed
This commit is contained in:
Nick Cao 2023-01-31 18:10:55 +08:00 committed by GitHub
commit a74f695255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ nixev() {
}
desc_system() {
nixev '(import <nixpkgs> {}).stdenv.hostPlatform.system'
nixev 'builtins.currentSystem'
}
desc_host_os() {
@ -98,7 +98,7 @@ desc_multi_user() {
}
desc_nixpkgs_path() {
nixev '<nixpkgs>'
nixev '<nixpkgs>' 2>/dev/null || echo "not found"
}
channel_facts() {