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
+2 -2
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() {