nixpkgs/pkgs/development/libraries/libsigsegv/2.5.nix
Vladimír Čunát eef236d0ba
libsigsegv*: add an option to apply a patch
Close #28536; this code is a bit different in style for 2.5,
and avoids mass rebuild for the default version.
2017-08-27 17:21:35 +02:00

23 lines
560 B
Nix

{ stdenv, fetchurl
, enableSigbusFix ? false # required by kernels < 3.18.6
}:
stdenv.mkDerivation rec {
name = "libsigsegv-2.5";
src = fetchurl {
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
sha256 = "0fvcsq9msi63vrbpvks6mqkrnls5cfy6bzww063sqhk2h49vsyyg";
};
patches = stdenv.lib.optional enableSigbusFix ./sigbus_fix.patch;
meta = {
homepage = http://libsigsegv.sf.net;
description = "A library for handling page faults in user mode";
branch = "2.5";
platforms = stdenv.lib.platforms.linux;
};
doCheck = true;
}