diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-04-28 08:31:15 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-04-28 08:31:15 +0200 |
commit | a2b4fe3b83f5a1f866d8f909b8381f9f4f2d2ba7 (patch) | |
tree | 7b5f2b9674cc4784afa5b8190b346a8c8c4ecb8f | |
parent | 307c3bdd0f95768fad3818a817651a5497dc53d1 (diff) |
libgcrypt: patch !isLinux builds after update
https://hydra.nixos.org/log/yasak2xgzs3ny45hbbm0768kv70sfm2s-libgcrypt-1.10.2.drv
-rw-r--r-- | pkgs/development/libraries/libgcrypt/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libgcrypt/default.nix b/pkgs/development/libraries/libgcrypt/default.nix index 8c26651a9218e..fe2f428986d7a 100644 --- a/pkgs/development/libraries/libgcrypt/default.nix +++ b/pkgs/development/libraries/libgcrypt/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, fetchpatch , gettext , libgpg-error , enableCapabilities ? false, libcap @@ -22,6 +23,14 @@ stdenv.mkDerivation rec { hash = "sha256-O5wCoAS2jCVq3ZlwHeALODrMzPNxd+DWxYKJZkzODAM="; }; + patches = lib.optionals (!stdenv.isLinux) [ # not everywhere to avoid rebuild for now + (fetchpatch { + name = "getrandom-conditionalize.patch"; + url = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff_plain;h=d41177937cea4aa1e9042ebcd195a349c40e8071"; + hash = "sha256-CgQjNtC1qLe5LicIc8rESc6Z1u4fk7ErMUVcG/2G9gM="; + }) + ]; + outputs = [ "out" "dev" "info" ]; outputBin = "dev"; |