1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/libraries/libsigsegv/default.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

38 lines
1.1 KiB
Nix

{ stdenv, fetchurl
, buildPlatform, hostPlatform
, enableSigbusFix ? false # required by kernels < 3.18.6
}:
stdenv.mkDerivation rec {
name = "libsigsegv-2.11";
src = fetchurl {
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
sha256 = "063swdvq7mbmc1clv0rnh20grwln1zfc2qnm0sa1hivcxyr2wz6x";
};
patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
doCheck = hostPlatform == buildPlatform;
meta = {
homepage = http://www.gnu.org/software/libsigsegv/;
description = "Library to handle page faults in user mode";
longDescription = ''
GNU libsigsegv is a library for handling page faults in user mode. A
page fault occurs when a program tries to access to a region of memory
that is currently not available. Catching and handling a page fault is
a useful technique for implementing pageable virtual memory,
memory-mapped access to persistent databases, generational garbage
collectors, stack overflow handlers, distributed shared memory, and
more.
'';
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = stdenv.lib.platforms.unix;
};
}