pet: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:54:00 -05:00
parent fda0e24e58
commit 42b14764ab
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
buildGoModule rec {
pname = "pet";
@ -13,9 +13,11 @@ buildGoModule rec {
modSha256 = "06ham8lsx5c1vk5jkwp1aa9g4q4g7sfq7gxz2gkffa98x2vlawyf";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "." ];
meta = with lib; {
meta = with stdenv.lib; {
description = "Simple command-line snippet manager, written in Go";
homepage = https://github.com/knqyf263/pet;
license = licenses.mit;

View file

@ -301,7 +301,9 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
pet = callPackage ../development/tools/pet { };
pet = callPackage ../development/tools/pet {
inherit (darwin.apple_sdk.frameworks) Security;
};
run = callPackage ../development/tools/run { };