libgcrypt: fix build on musl32
This commit is contained in:
parent
733d24b50b
commit
756ace721e
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchurl, gettext, libgpgerror, enableCapabilities ? false, libcap
|
||||
, buildPackages
|
||||
, buildPackages, fetchpatch
|
||||
}:
|
||||
|
||||
assert enableCapabilities -> stdenv.isLinux;
|
||||
@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1nb50bgzp83q6r5cz4v40y1mcbhpqwqyxlay87xp1lrbkf5pm9n5";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix build on 32bit musl
|
||||
(fetchpatch {
|
||||
name = "fix_building_with_disable-asm_on_x86.patch";
|
||||
url = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff_plain;h=af23ab5c5482d625ff52e60606cf044e2b0106c8";
|
||||
sha256 = "1m8apm8wra6fk89ggha4d0bba5absihm38zvb2khklqh9q5hj9jw";
|
||||
})
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" "info" ];
|
||||
outputBin = "dev";
|
||||
|
||||
@ -27,6 +36,8 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional stdenv.isDarwin gettext
|
||||
++ lib.optional enableCapabilities libcap;
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ]
|
||||
++ lib.optional stdenv.hostPlatform.isMusl "--disable-asm";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user