minify: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:42:00 -05:00
parent b85ea94504
commit 6e973c66a0
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 = "minify";
@ -13,9 +13,11 @@ buildGoModule rec {
modSha256 = "09jk3mxf7n9wf1cgyiw9mhsr55fb12k399dmzhnib3vhd9xav15i";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "Minifiers for web formats";
license = licenses.mit;
homepage = "https://go.tacodewolff.nl/minify";

View File

@ -10571,7 +10571,9 @@ in
mdl = callPackage ../development/tools/misc/mdl { };
minify = callPackage ../development/web/minify { };
minify = callPackage ../development/web/minify {
inherit (darwin.apple_sdk.frameworks) Security;
};
minizinc = callPackage ../development/tools/minizinc { };
minizincide = qt5.callPackage ../development/tools/minizinc/ide.nix { };