From 38488e93db4da2ef0fe19f81a83ef05297db9b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Mon, 25 Nov 2024 08:30:45 +0100 Subject: [PATCH] add missing pkg-config for darwin --- default.nix | 1 + package.nix | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 2db6e2c2..7dfbfc24 100644 --- a/default.nix +++ b/default.nix @@ -45,6 +45,7 @@ let installManPages = false; notmuch = pkgs.notmuch; gpgme = pkgs.gpgme; + pkg-config = pkgs.pkg-config; buildNoDefaultFeatures = !defaultFeatures; buildFeatures = lib.strings.splitString "," features; }; diff --git a/package.nix b/package.nix index 6ad26f86..f939b149 100644 --- a/package.nix +++ b/package.nix @@ -1,4 +1,5 @@ { lib +, pkg-config , hostPlatform , rustPlatform , fetchFromGitHub @@ -38,10 +39,11 @@ rustPlatform.buildRustPackage rec { ''; nativeBuildInputs = [ ] + ++ lib.optional hostPlatform.isDarwin pkg-config ++ lib.optional (installManPages || installShellCompletions) installShellFiles; buildInputs = [ ] - ++ lib.optionals hostPlatform.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ libiconv Security ]) + ++ lib.optionals hostPlatform.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ Security ]) ++ lib.optional (builtins.elem "notmuch" buildFeatures) notmuch ++ lib.optional (builtins.elem "pgp-gpg" buildFeatures) gpgme;