Commit 64faef22 authored by Benjamin Sparks's avatar Benjamin Sparks
Browse files

units: remove prePatch

Having the correct Python env in `buildInputs` is sufficient for the
shebang to be replaced
parent b49a5346
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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/
  '';