libsigsegv*: add an option to apply a patch
Close #28536; this code is a bit different in style for 2.5, and avoids mass rebuild for the default version.
This commit is contained in:
parent
3eca1c5500
commit
eef236d0ba
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, enableSigbusFix ? false # required by kernels < 3.18.6
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libsigsegv-2.5";
|
||||
|
@ -8,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0fvcsq9msi63vrbpvks6mqkrnls5cfy6bzww063sqhk2h49vsyyg";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optional enableSigbusFix ./sigbus_fix.patch;
|
||||
|
||||
meta = {
|
||||
homepage = http://libsigsegv.sf.net;
|
||||
description = "A library for handling page faults in user mode";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchurl
|
||||
, buildPlatform, hostPlatform
|
||||
, enableSigbusFix ? false # required by kernels < 3.18.6
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -10,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "063swdvq7mbmc1clv0rnh20grwln1zfc2qnm0sa1hivcxyr2wz6x";
|
||||
};
|
||||
|
||||
patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
|
||||
|
||||
doCheck = hostPlatform == buildPlatform;
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue