2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl
|
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 {
|
2021-01-20 00:32:52 +01:00
|
|
|
name = "libsigsegv-2.13";
|
2009-08-10 00:24:05 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
|
2021-01-20 00:32:52 +01:00
|
|
|
sha256 = "sha256-vnjuQXawX3x1/wMpjYSHTbkPS2ydVQPw2hIms6PEgRk=";
|
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 = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://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.
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2009-08-10 00:24:05 +02:00
|
|
|
|
2015-01-13 22:33:24 +01:00
|
|
|
maintainers = [ ];
|
2021-01-21 18:00:13 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2009-08-10 00:24:05 +02:00
|
|
|
};
|
|
|
|
}
|