From d52885648294627a12758187fc71a18e45f76fc6 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 27 Aug 2022 04:20:00 +0000 Subject: [PATCH] dura: fix build on darwin --- pkgs/development/tools/misc/dura/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/misc/dura/default.nix b/pkgs/development/tools/misc/dura/default.nix index c2d2a2d322f5..ab88298f45a3 100644 --- a/pkgs/development/tools/misc/dura/default.nix +++ b/pkgs/development/tools/misc/dura/default.nix @@ -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 ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 44e4fc2c4fac..4810692c2d14 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };