units: remove prePatch

Having the correct Python env in `buildInputs` is sufficient for the
shebang to be replaced
This commit is contained in:
Benjamin Sparks
2026-01-02 17:07:34 +01:00
parent b49a5346c4
commit 64faef22a4
-5
View File
@@ -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/
'';