libeatmydata: fix launcher script - find shell library properly

The new version of the launcher script in version 105 doesn't have the #8665
bug, but it does try to find the shell library using Debian tools, which
obviously doesn't work on Nix. Removed the now-unneccessary makeWrapper and
patched out the Debian bits.
This commit is contained in:
Echo Nolan
2020-02-22 15:16:56 -08:00
parent ea79a830dc
commit 4e9b94836f
2 changed files with 25 additions and 6 deletions
@@ -2,17 +2,16 @@
stdenv.mkDerivation rec {
name = "libeatmydata-105";
src = fetchurl {
url = "https://www.flamingspork.com/projects/libeatmydata/${name}.tar.gz";
sha256 = "1pd8sc73cgc41ldsvq6g8ics1m5k8gdcb91as9yg8z5jnrld1lmx";
};
buildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/eatmydata \
--prefix PATH : $out/bin
patches = [ ./find-shell-lib.patch ];
patchFlags = "-p0";
postPatch = ''
substituteInPlace eatmydata.in --replace NIX_OUT_DIR $out
'';
meta = {