mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
0498ccd076
HTTP -> HTTPS for : - http://gnu.org/ - http://www.gnu.org/ - http://elpa.gnu.org/ - http://lists.gnu.org/ - http://gcc.gnu.org/ - http://ftp.gnu.org/ (except in fetchurl mirrors) - http://bugs.gnu.org/
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, fetchurl
|
|
, enableSigbusFix ? false # required by kernels < 3.18.6
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libsigsegv-2.12";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
|
|
sha256 = "1dlhqf4igzpqayms25lkhycjq1ccavisx8cnb3y4zapbkqsszq9s";
|
|
};
|
|
|
|
patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
|
|
|
|
doCheck = true; # not cross;
|
|
|
|
meta = {
|
|
homepage = https://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;
|
|
};
|
|
}
|