]> git.scottworley.com Git - warn-nixpkgs/commitdiff
Drop-in replacement support for get-version-suffix
authorScott Worley <scottworley@scottworley.com>
Mon, 23 Aug 2021 19:52:36 +0000 (12:52 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 23 Aug 2021 20:00:46 +0000 (13:00 -0700)
pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh invokes this.
Probably it should not?

nixos/modules/installer/tools/get-version-suffix [new file with mode: 0755]

diff --git a/nixos/modules/installer/tools/get-version-suffix b/nixos/modules/installer/tools/get-version-suffix
new file mode 100755 (executable)
index 0000000..fceb513
--- /dev/null
@@ -0,0 +1,5 @@
+#!/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
+
+/bin/sh `nix-instantiate --find-file nixpkgs-warned "$@"`/nixos/modules/installer/tools/get-version-suffix "$@"