mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #210864 from peng1999/nix-info-patch
nix-info: fix error when no channel installed
This commit is contained in:
commit
a74f695255
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue