Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkgs/development/libraries/p11-kit/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, docbook-xsl-nons
, gtk-doc
Expand All @@ -25,6 +26,15 @@ stdenv.mkDerivation rec {
hash = "sha256-paLiRYgYshuedgDgW2nEsv4/Loq6qFyQMjfBJwqtHzw=";
};

patches = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# backport fix for "cannot run test program while cross compiling"
# remove on next release
(fetchpatch {
url = "https://github.com/p11-glue/p11-kit/pull/529.diff";
hash = "sha256-b+Zfq5/iFAYKTqTfJ0brPsKQy0bUcRq7X+fZNsxFMLI=";
})
];

outputs = [ "out" "bin" "dev"];

# For cross platform builds of p11-kit, libtasn1 in nativeBuildInputs
Expand Down