dura: fix build on darwin

This commit is contained in:
Mario Rodas 2022-08-27 04:20:00 +00:00
parent a69cbfae58
commit d528856482
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, Security }:
rustPlatform.buildRustPackage rec {
pname = "dura";
@ -21,6 +21,8 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
];
nativeBuildInputs = [
@ -38,7 +40,6 @@ rustPlatform.buildRustPackage rec {
'';
homepage = "https://github.com/tkellogg/dura";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ drupol ];
};
}

View File

@ -16121,7 +16121,9 @@ with pkgs;
drush = callPackage ../development/tools/misc/drush { };
dura = callPackage ../development/tools/misc/dura { };
dura = callPackage ../development/tools/misc/dura {
inherit (darwin.apple_sdk.frameworks) Security;
};
dwfv = callPackage ../applications/science/electronics/dwfv { };