diff options
Diffstat (limited to 'nixos/modules/installer/tools/get-version-suffix')
-rw-r--r-- | nixos/modules/installer/tools/get-version-suffix | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/nixos/modules/installer/tools/get-version-suffix b/nixos/modules/installer/tools/get-version-suffix index 76cec8d5dae..461fbf4d3d8 100644 --- a/nixos/modules/installer/tools/get-version-suffix +++ b/nixos/modules/installer/tools/get-version-suffix @@ -14,16 +14,9 @@ getVersion() { fi } -if nixos=$(nix-instantiate --find-file nixos "$@"); then - getVersion $nixos +if nixpkgs=$(nix-instantiate --find-file nixpkgs "$@"); then + getVersion $nixpkgs if [ -n "$rev" ]; then - suffix="pre-$rev" - if nixpkgs=$(nix-instantiate --find-file nixpkgs "$@"); then - getVersion $nixpkgs - if [ -n "$rev" ]; then - suffix+="-$rev" - fi - fi - echo $suffix + echo "pre-$rev" fi fi |