Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bfa2452dc83c
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8f43c5559812
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Apr 29, 2020

  1. libeatmydata: allow building from checkout

    Also include note about running tests.
    peterhoeg committed Apr 29, 2020
    Copy the full SHA
    3628b1c View commit details
  2. Merge pull request #86289 from peterhoeg/f/libeatmydata

    libeatmydata: allow building from checkout
    peterhoeg authored Apr 29, 2020
    Copy the full SHA
    8f43c55 View commit details
Showing with 28 additions and 10 deletions.
  1. +28 −10 pkgs/development/libraries/libeatmydata/default.nix
38 changes: 28 additions & 10 deletions pkgs/development/libraries/libeatmydata/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
{ stdenv, fetchurl, makeWrapper }:
{ stdenv, fetchFromGitHub, autoreconfHook, strace, which }:

stdenv.mkDerivation rec {
name = "libeatmydata-105";
pname = "libeatmydata";
version = "105";

src = fetchurl {
url = "https://www.flamingspork.com/projects/libeatmydata/${name}.tar.gz";
sha256 = "1pd8sc73cgc41ldsvq6g8ics1m5k8gdcb91as9yg8z5jnrld1lmx";
src = fetchFromGitHub {
owner = "stewartsmith";
repo = pname;
rev = "${pname}-${version}";
sha256 = "0sx803h46i81h67xbpd3c7ky0nhaw4gij214nsx4lqig70223v9r";
};

patches = [ ./find-shell-lib.patch ];

patchFlags = "-p0";

postPatch = ''
substituteInPlace eatmydata.in --replace NIX_OUT_DIR $out
substituteInPlace eatmydata.in \
--replace NIX_OUT_DIR $out
patchShebangs .
'';

meta = {
homepage = "https://www.flamingspork.com/projects/libeatmydata/";
license = stdenv.lib.licenses.gpl3Plus;
nativeBuildInputs = [
autoreconfHook
] ++ stdenv.lib.optionals doCheck [ strace which ];

# while we can *build* in parallel, the tests also run in parallel which does
# not work with v105. Later versions (unreleased) have a fix for that. The
# problem is that on hydra we cannot use strace, so the tests don't run there.
enableParallelBuilding = true;
doCheck = false;

meta = with stdenv.lib; {
description = "Small LD_PRELOAD library to disable fsync and friends";
platforms = stdenv.lib.platforms.unix;
homepage = "https://www.flamingspork.com/projects/libeatmydata/";
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
}