From 8b5666c133a59ec7d90d6ace277f7b0e677b651a Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 1 Dec 2023 11:16:47 -0300 Subject: [PATCH] passwdqc: Darwin-specific upstream patch --- pkgs/by-name/pa/passwdqc/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/pa/passwdqc/package.nix b/pkgs/by-name/pa/passwdqc/package.nix index 4250595cf0c2..f70076243fbb 100644 --- a/pkgs/by-name/pa/passwdqc/package.nix +++ b/pkgs/by-name/pa/passwdqc/package.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , libxcrypt , pam , pkg-config @@ -17,6 +18,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-EgPeccqS+DDDMBVMc4bd70EMnXFuyglftxuqoaYHwNY="; }; + patches = [ + (fetchpatch { + name = "0001-fix-solaris-macos-builds.patch"; + url = "https://github.com/openwall/passwdqc/commit/fbf38229857f3d1982aa305c20da5e1ea0195b3e.patch"; + hash = "sha256-FaEWROHwFzd4ZTeKyPvuAr9vcgnHEv8MhERblIU8JC4="; + }) + ]; + outputs = [ "out" "man" ]; nativeBuildInputs = [ @@ -42,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: { "MANDIR=$(man)/man" "PKGCONFIGDIR=$(out)/lib/pkgconfig" "SECUREDIR=$(out)/lib/security" + "SECUREDIR_DARWIN=$(out)/lib/security" "SHARED_LIBDIR=$(out)/lib" "SHARED_LIBDIR_REL=$(out)/lib" ];