python312Packages.icontract: relax deps (#380554)
[NixPkgs.git] / pkgs / by-name / li / libsigsegv / package.nix
blob7f64f4ba0ee222be217c694e6eeaf8721bb7a843
2   lib,
3   stdenv,
4   fetchurl,
5   enableSigbusFix ? false, # required by kernels < 3.18.6
6 }:
8 stdenv.mkDerivation rec {
9   pname = "libsigsegv";
10   version = "2.14";
12   src = fetchurl {
13     url = "mirror://gnu/libsigsegv/libsigsegv-${version}.tar.gz";
14     sha256 = "sha256-zaw5QYAzZM+BqQhJm+t5wgDq1gtrW0DK0ST9HgbKopU=";
15   };
17   patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
19   doCheck = true; # not cross;
21   meta = {
22     homepage = "https://www.gnu.org/software/libsigsegv/";
23     description = "Library to handle page faults in user mode";
25     longDescription = ''
26       GNU libsigsegv is a library for handling page faults in user mode. A
27       page fault occurs when a program tries to access to a region of memory
28       that is currently not available. Catching and handling a page fault is
29       a useful technique for implementing pageable virtual memory,
30       memory-mapped access to persistent databases, generational garbage
31       collectors, stack overflow handlers, distributed shared memory, and
32       more.
33     '';
35     license = lib.licenses.gpl2Plus;
37     maintainers = [ ];
38     platforms = lib.platforms.unix;
39   };