From 64faef22a4cb42b3b65c1cd3a7c50d2af99b3103 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 2 Jan 2026 00:48:09 +0100 Subject: [PATCH] units: remove prePatch Having the correct Python env in `buildInputs` is sufficient for the shebang to be replaced --- pkgs/by-name/un/units/package.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/by-name/un/units/package.nix b/pkgs/by-name/un/units/package.nix index 6cdc6a276af6..9a7531653479 100644 --- a/pkgs/by-name/un/units/package.nix +++ b/pkgs/by-name/un/units/package.nix @@ -37,11 +37,6 @@ stdenv.mkDerivation (finalAttrs: { pythonEnv ]; - prePatch = lib.optionalString enableCurrenciesUpdater '' - substituteInPlace units_cur \ - --replace "#!/usr/bin/env python" ${pythonEnv}/bin/python - ''; - postInstall = lib.optionalString enableCurrenciesUpdater '' cp units_cur ${placeholder "out"}/bin/ '';