From: Scott Worley Date: Mon, 23 Aug 2021 19:52:36 +0000 (-0700) Subject: Drop-in replacement support for get-version-suffix X-Git-Url: http://git.scottworley.com/warn-nixpkgs/commitdiff_plain/6996da60d17230ddad0f447255f3e9bb112ae054 Drop-in replacement support for get-version-suffix pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh invokes this. Probably it should not? --- diff --git a/nixos/modules/installer/tools/get-version-suffix b/nixos/modules/installer/tools/get-version-suffix new file mode 100755 index 0000000..fceb513 --- /dev/null +++ b/nixos/modules/installer/tools/get-version-suffix @@ -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 "$@"