]> git.scottworley.com Git - warn-nixpkgs/blobdiff - nixos/modules/installer/tools/get-version-suffix
Help get-version-suffix find itself
[warn-nixpkgs] / nixos / modules / installer / tools / get-version-suffix
index fceb513b17d9bb6a3737b0073a3e661a3d945dd2..9b73e1efdb59e1213ef2605f98114209417c1744 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
 #!/bin/sh
 
-echo "warning: Using legacy channel get-version-suffix from `nix-instantiate --find-file nixpkgs-warned "$@"`/nixos/modules/installer/tools/get-version-suffix" >&2
+warn_nixpkgs_actual_nixpkgs_path="`nix-instantiate --find-file nixpkgs-warned "$@"`"
 
 
-/bin/sh `nix-instantiate --find-file nixpkgs-warned "$@"`/nixos/modules/installer/tools/get-version-suffix "$@"
+echo "warning: Using legacy channel get-version-suffix from $warn_nixpkgs_actual_nixpkgs_path/nixos/modules/installer/tools/get-version-suffix" >&2
+
+/bin/sh "$warn_nixpkgs_actual_nixpkgs_path/nixos/modules/installer/tools/get-version-suffix" -I nixpkgs="$warn_nixpkgs_actual_nixpkgs_path" "$@"