routinator: fix darwin build

This commit is contained in:
Ben Siraphob 2021-03-10 19:04:25 +07:00
parent e79822050c
commit 593629b7a9
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform }:
{ stdenv, lib, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "routinator";
@ -11,6 +11,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-JwPAwhD+Pkx8Kx24m7z/RbEvDnI2YR8dnTgAV7TMsFE=";
};
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "sha256-lhSSyJxxHc0t43xoDMtr/lSVL0xZl6poPYiyYXNvKKQ=";
meta = with lib; {
@ -18,6 +19,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/NLnetLabs/routinator";
license = licenses.bsd3;
maintainers = with maintainers; [ _0x4A6F ];
platforms = platforms.linux;
platforms = platforms.all;
};
}

View file

@ -2887,7 +2887,9 @@ in
roundcubePlugins = dontRecurseIntoAttrs (callPackage ../servers/roundcube/plugins { });
routinator = callPackage ../servers/routinator { };
routinator = callPackage ../servers/routinator {
inherit (darwin.apple_sdk.frameworks) Security;
};
rsbep = callPackage ../tools/backup/rsbep { };