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;