2009-08-09 23:24:05 +01:00
{ fetchurl , stdenv }:
stdenv . mkDerivation rec {
2011-12-14 10:35:59 +00:00
name = " l i b s i g s e g v - 2 . 1 0 " ;
2009-08-09 23:24:05 +01:00
src = fetchurl {
url = " m i r r o r : / / g n u / l i b s i g s e g v / ${ name } . t a r . g z " ;
2011-12-14 10:35:59 +00:00
sha256 = " 1 6 h r s 8 k 3 n m c 7 a 8 j a m 5 j 1 f p s p d 6 s d p k a m s k v s d p c w 6 m 2 9 v n i s 8 q 4 4 " ;
2009-08-09 23:24:05 +01:00
} ;
2016-03-25 20:15:57 +00:00
# Based on https://github.com/davidgfnet/buildroot-Os/blob/69fe6065b9dd1cb4dcc0a4b554e42cc2e5bd0d60/package/libsigsegv/libsigsegv-0002-fix-aarch64-build.patch
# but applied directly to configure since we can't use autoreconf while bootstrapping.
patches = if stdenv . isAarch64 || stdenv . cross . arch or " " == " a a r c h 6 4 "
then [ ./aarch64.patch ]
else null ; # TODO: change to lib.optional on next mass rebuild
2015-02-17 22:36:14 +00:00
# https://github.com/NixOS/nixpkgs/issues/6028
doCheck = false ;
2009-08-09 23:24:05 +01:00
meta = {
homepage = http://www.gnu.org/software/libsigsegv/ ;
2014-08-24 15:21:08 +01:00
description = " L i b r a r y t o h a n d l e p a g e f a u l t s i n u s e r m o d e " ;
2009-08-09 23:24:05 +01: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 05:19:00 +01:00
license = stdenv . lib . licenses . gpl2Plus ;
2009-08-09 23:24:05 +01:00
2015-01-13 21:33:24 +00:00
maintainers = [ ] ;
2016-08-02 18:50:55 +01:00
platforms = stdenv . lib . platforms . unix ;
2009-08-09 23:24:05 +01:00
} ;
}