archiver: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:24:00 -05:00
parent 976a9ea16b
commit 4ca044eafc
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
, Security
}:
buildGoModule rec {
@ -16,7 +17,9 @@ buildGoModule rec {
modSha256 = "1mrfqhd0zb78rlqlj2ncb0srwjfl7rzhy2p9mwa82pgysvlp08gv";
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "Easily create & extract archives, and compress & decompress files of various formats";
homepage = "https://github.com/mholt/archiver";
license = licenses.mit;

View File

@ -191,7 +191,9 @@ in
dieHook = makeSetupHook {} ../build-support/setup-hooks/die.sh;
archiver = callPackage ../applications/misc/archiver { };
archiver = callPackage ../applications/misc/archiver {
inherit (darwin.apple_sdk.frameworks) Security;
};
digitalbitbox = libsForQt5.callPackage ../applications/misc/digitalbitbox { };