Unverified Commit a2b4fe3b authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files
parent 307c3bdd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ 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";