1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

packr: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:35:00 -05:00
parent 4a5a07a487
commit 028d53e996
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
, Security
}:
buildGoModule rec {
@ -16,9 +17,11 @@ buildGoModule rec {
subPackages = [ "packr" "v2/packr2" ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
modSha256 = "0afhkvivma16bi8rz3kwcsz9mhmcn4zm6rrymxkvazx6b844hcdv";
meta = with lib; {
meta = with stdenv.lib; {
description = "The simple and easy way to embed static files into Go binaries";
homepage = "https://github.com/gobuffalo/packr";
license = licenses.mit;

View file

@ -292,6 +292,7 @@ in
# Version 2.6.0 fails to build with go 1.13 due to nested modules:
# go: directory v2/packr2 is outside main module
buildGoModule = buildGo112Module;
inherit (darwin.apple_sdk.frameworks) Security;
};
pet = callPackage ../development/tools/pet { };