diff options
author | Echo Nolan <echo@echonolan.net> | 2020-02-22 02:16:29 -0800 |
---|---|---|
committer | Echo Nolan <echo@echonolan.net> | 2020-02-22 15:16:56 -0800 |
commit | 4e9b94836fb3b548685bab95d4c07caa03fc0748 (patch) | |
tree | a0f13feedc5de5c4ac9c87f34af9f598e8f9f886 /pkgs/development/libraries/libeatmydata/default.nix | |
parent | ea79a830dcf9c0059656da7f52835d2663d5c436 (diff) |
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.
Diffstat (limited to 'pkgs/development/libraries/libeatmydata/default.nix')
-rw-r--r-- | pkgs/development/libraries/libeatmydata/default.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/development/libraries/libeatmydata/default.nix b/pkgs/development/libraries/libeatmydata/default.nix index 5127231dab60d..29ca85cdeb018 100644 --- a/pkgs/development/libraries/libeatmydata/default.nix +++ b/pkgs/development/libraries/libeatmydata/default.nix @@ -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 = { |