depot/third_party/nixpkgs/pkgs/development/libraries/libsigsegv/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

37 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl
, enableSigbusFix ? false # required by kernels < 3.18.6
}:
stdenv.mkDerivation rec {
pname = "libsigsegv";
version = "2.13";
src = fetchurl {
url = "mirror://gnu/libsigsegv/libsigsegv-${version}.tar.gz";
sha256 = "sha256-vnjuQXawX3x1/wMpjYSHTbkPS2ydVQPw2hIms6PEgRk=";
};
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 = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}