diff options
author | Yureka <yuka@yuka.dev> | 2022-11-30 09:17:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 09:17:29 +0100 |
commit | bc946d95e2c39e1b6fd5a2d4361d8a1e812c1d87 (patch) | |
tree | 5cf06808748119df8aa5c783b7e923d5692450b1 /pkgs/development/libraries/cmocka | |
parent | 215f22b053d4c614f60ffaf59e8dc17a5cae0720 (diff) |
pkgsMusl.cmocka: fix build on aarch64 (#203307)
Diffstat (limited to 'pkgs/development/libraries/cmocka')
-rw-r--r-- | pkgs/development/libraries/cmocka/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/cmocka/default.nix b/pkgs/development/libraries/cmocka/default.nix index 9bfbc410c0072..ed78f4f9ec84a 100644 --- a/pkgs/development/libraries/cmocka/default.nix +++ b/pkgs/development/libraries/cmocka/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, lib, stdenv, cmake }: +{ fetchurl, fetchpatch, lib, stdenv, cmake }: stdenv.mkDerivation rec { pname = "cmocka"; @@ -10,6 +10,14 @@ stdenv.mkDerivation rec { sha256 = "1dm8pdvkyfa8dsbz9bpq7wwgixjij4sii9bbn5sgvqjm5ljdik7h"; }; + patches = [ + (fetchpatch { + name = "musl-uintptr.patch"; + url = "https://git.alpinelinux.org/aports/plain/main/cmocka/musl_uintptr.patch?id=6a15dd0d0ba9cc354a621fb359ca5e315ff2eabd"; + sha256 = "sha256-fhb2Tax30kRTGuaKvzSzglSd/ntxiNeGFJt5I8poa24="; + }) + ]; + nativeBuildInputs = [ cmake ]; meta = with lib; { |