zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / li / libeatmydata / package.nix
blobaf477fdc928514e138d550589c44ddd2e1290cd1
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   strace,
7   which,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "libeatmydata";
12   version = "131";
14   src = fetchFromGitHub {
15     owner = "stewartsmith";
16     repo = pname;
17     tag = "v${version}";
18     sha256 = "sha256-0lrYDW51/KSr809whGwg9FYhzcLRfmoxipIgrK1zFCc=";
19   };
21   patches = [
22     # https://github.com/stewartsmith/libeatmydata/pull/36
23     ./LFS64.patch
24   ];
26   postPatch = ''
27     patchShebangs .
28   '';
30   nativeBuildInputs = [
31     autoreconfHook
32   ];
34   nativeCheckInputs = [
35     strace
36     which
37   ];
39   doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
41   enableParallelBuilding = true;
43   meta = with lib; {
44     description = "Small LD_PRELOAD library to disable fsync and friends";
45     homepage = "https://www.flamingspork.com/projects/libeatmydata/";
46     license = licenses.gpl3Plus;
47     mainProgram = "eatmydata";
48     platforms = platforms.unix;
49   };