2009-08-09 23:24:05 +01:00
{ fetchurl , stdenv }:
stdenv . mkDerivation rec {
2017-04-11 10:53:49 +01:00
name = " l i b s i g s e g v - 2 . 1 1 " ;
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 " ;
2017-04-11 10:53:49 +01:00
sha256 = " 0 6 3 s w d v q 7 m b m c 1 c l v 0 r n h 2 0 g r w l n 1 z f c 2 q n m 0 s a 1 h i v c x y r 2 w z 6 x " ;
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
} ;
}