units: remove prePatch
Having the correct Python env in `buildInputs` is sufficient for the shebang to be replaced
This commit is contained in:
@@ -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/
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user