libgpg-error: Add RISC-V patch.

This commit is contained in:
Shea Levy
2018-02-24 21:34:54 -05:00
parent 529ea1f921
commit 09e57636f8
2 changed files with 57 additions and 1 deletions
@@ -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 ''