age: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:20:00 -05:00
parent bfb747aacf
commit 7db5054023
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "age";
@ -18,7 +18,9 @@ buildGoModule rec {
sha256 = "1n1ww8yjw0mg00dvnfmggww9kwp1hls0a85iv6vx9k89mzv8mdrq";
};
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
homepage = "https://age-encryption.org/";
description = "Modern encryption tool with small explicit keys";
license = licenses.bsd3;

View file

@ -2614,7 +2614,9 @@ in
caps2esc = callPackage ../tools/inputmethods/interception-tools/caps2esc.nix { };
};
age = callPackage ../tools/security/age { };
age = callPackage ../tools/security/age {
inherit (darwin.apple_sdk.frameworks) Security;
};
brotli = callPackage ../tools/compression/brotli { };