mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
eef236d0ba
Close #28536; this code is a bit different in style for 2.5, and avoids mass rebuild for the default version.
24 lines
560 B
Nix
24 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;
|
|
}
|