about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libeatmydata/default.nix
blob: 5127231dab60d65d1ed8a00629219a1e929ea896 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, makeWrapper }:

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
  '';

  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;
  };
}