Skip to content

Commit

Permalink
age: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Mar 21, 2020
1 parent bfb747a commit 7db5054
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pkgs/tools/security/age/default.nix
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:

buildGoModule rec {
pname = "age";
Expand All @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -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 { };

Expand Down

0 comments on commit 7db5054

Please sign in to comment.