From 9477cad1e1b34c5b95ed5c369f2bc9ae224367a2 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 24 Dec 2018 14:15:40 -0500 Subject: [PATCH] diskus: enable build on darwin --- pkgs/tools/misc/diskus/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/diskus/default.nix b/pkgs/tools/misc/diskus/default.nix index 7b0681f31663..346ae141819e 100644 --- a/pkgs/tools/misc/diskus/default.nix +++ b/pkgs/tools/misc/diskus/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform }: +{ stdenv, fetchFromGitHub, rustPlatform, Security }: rustPlatform.buildRustPackage rec { name = "diskus-${version}"; @@ -11,6 +11,8 @@ rustPlatform.buildRustPackage rec { sha256 = "18scxspi5ncags8bnxq4ah9w8hrlwwlgpq7q9qfh4d81asmbyr8n"; }; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + cargoSha256 = "1syrmm5qpz7d1h17xpw1wa3d2snaz9n7d1avsjp7xz8s2qcx1wdc"; meta = with stdenv.lib; { @@ -18,6 +20,6 @@ rustPlatform.buildRustPackage rec { homepage = https://github.com/sharkdp/diskus; license = with licenses; [ asl20 /* or */ mit ]; maintainers = [ maintainers.fuerbringer ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8e0f19b4ab4e..b9765628fffe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -700,7 +700,9 @@ in deskew = callPackage ../applications/graphics/deskew { }; - diskus = callPackage ../tools/misc/diskus { }; + diskus = callPackage ../tools/misc/diskus { + inherit (darwin.apple_sdk.frameworks) Security; + }; djmount = callPackage ../tools/filesystems/djmount { };