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