From 6996da60d17230ddad0f447255f3e9bb112ae054 Mon Sep 17 00:00:00 2001
From: Scott Worley <scottworley@scottworley.com>
Date: Mon, 23 Aug 2021 12:52:36 -0700
Subject: [PATCH] Drop-in replacement support for get-version-suffix

pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh invokes this.
Probably it should not?
---
 nixos/modules/installer/tools/get-version-suffix | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100755 nixos/modules/installer/tools/get-version-suffix

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 "$@"
-- 
2.47.2