2017-06-04 00:35:03 +00:00
|
|
|
{ stdenv, fetchurl
|
2017-08-27 15:21:35 +00:00
|
|
|
, enableSigbusFix ? false # required by kernels < 3.18.6
|
2017-06-04 00:35:03 +00:00
|
|
|
}:
|
2009-08-09 22:24:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-18 22:02:23 +00:00
|
|
|
name = "libsigsegv-2.12";
|
2009-08-09 22:24:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
|
2018-01-18 22:02:23 +00:00
|
|
|
sha256 = "1dlhqf4igzpqayms25lkhycjq1ccavisx8cnb3y4zapbkqsszq9s";
|
2009-08-09 22:24:05 +00:00
|
|
|
};
|
|
|
|
|
2017-08-27 15:21:35 +00:00
|
|
|
patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
|
|
|
|
|
2018-01-08 07:19:47 +00:00
|
|
|
doCheck = true; # not cross;
|
2009-08-09 22:24:05 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnu.org/software/libsigsegv/;
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Library to handle page faults in user mode";
|
2009-08-09 22:24:05 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-08-09 22:24:05 +00:00
|
|
|
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-08-09 22:24:05 +00:00
|
|
|
};
|
|
|
|
}
|