libgpg-error: Add RISC-V patch.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPackages, fetchurl, gettext
|
||||
, genPosixLockObjOnly ? false
|
||||
, hostPlatform, genPosixLockObjOnly ? false
|
||||
}: let
|
||||
genPosixLockObjOnlyAttrs = stdenv.lib.optionalAttrs genPosixLockObjOnly {
|
||||
buildPhase = ''
|
||||
@@ -24,6 +24,8 @@ in stdenv.mkDerivation (rec {
|
||||
sha256 = "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg";
|
||||
};
|
||||
|
||||
patches = if hostPlatform.isRiscV then ./riscv.patch else null;
|
||||
|
||||
postPatch = ''
|
||||
sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
|
||||
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
|
||||
Reference in New Issue
Block a user