From 403a85adaa46e20c27e3d6f4dfe193b139c81df7 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Mon, 12 Aug 2024 20:53:21 +0100 Subject: [PATCH] yubihsm-shell: fix linking to pcsclite.h --- pkgs/tools/security/yubihsm-shell/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/yubihsm-shell/default.nix b/pkgs/tools/security/yubihsm-shell/default.nix index 3302b26bfb90..8567798ea82c 100644 --- a/pkgs/tools/security/yubihsm-shell/default.nix +++ b/pkgs/tools/security/yubihsm-shell/default.nix @@ -48,12 +48,16 @@ stdenv.mkDerivation rec { curl openssl ] ++ lib.optionals stdenv.isLinux [ - pcsclite + pcsclite.dev ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.PCSC libiconv ]; + preBuild = lib.optionalString stdenv.isLinux '' + NIX_CFLAGS_COMPILE="$(pkg-config --cflags libpcsclite) $NIX_CFLAGS_COMPILE" + ''; + cmakeFlags = lib.optionals stdenv.isDarwin [ "-DDISABLE_LTO=ON" ];