nixpkgs/pkgs/development/libraries/libeatmydata/default.nix
Echo Nolan 4e9b94836f 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.
2020-02-22 15:16:56 -08:00

24 lines
661 B
Nix

{ stdenv, fetchurl, makeWrapper }:
stdenv.mkDerivation rec {
name = "libeatmydata-105";
src = fetchurl {
url = "https://www.flamingspork.com/projects/libeatmydata/${name}.tar.gz";
sha256 = "1pd8sc73cgc41ldsvq6g8ics1m5k8gdcb91as9yg8z5jnrld1lmx";
};
patches = [ ./find-shell-lib.patch ];
patchFlags = "-p0";
postPatch = ''
substituteInPlace eatmydata.in --replace NIX_OUT_DIR $out
'';
meta = {
homepage = https://www.flamingspork.com/projects/libeatmydata/;
license = stdenv.lib.licenses.gpl3Plus;
description = "Small LD_PRELOAD library to disable fsync and friends";
platforms = stdenv.lib.platforms.unix;
};
}