5 enableSigbusFix ? false, # required by kernels < 3.18.6
8 stdenv.mkDerivation rec {
13 url = "mirror://gnu/libsigsegv/libsigsegv-${version}.tar.gz";
14 sha256 = "sha256-zaw5QYAzZM+BqQhJm+t5wgDq1gtrW0DK0ST9HgbKopU=";
17 patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
19 doCheck = true; # not cross;
22 homepage = "https://www.gnu.org/software/libsigsegv/";
23 description = "Library to handle page faults in user mode";
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
35 license = lib.licenses.gpl2Plus;
38 platforms = lib.platforms.unix;