imgproxy: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:26:00 -05:00
parent b149f2ee80
commit ed310da737
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection }:
{ stdenv, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection, Security }:
buildGoModule rec {
pname = "imgproxy";
@ -15,13 +15,14 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gobject-introspection vips ];
buildInputs = [ gobject-introspection vips ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
preBuild = ''
export CGO_LDFLAGS_ALLOW='-(s|w)'
'';
meta = with lib; {
meta = with stdenv.lib; {
description = "Fast and secure on-the-fly image processing server written in Go";
homepage = "https://imgproxy.net";
license = licenses.mit;

View file

@ -15566,7 +15566,9 @@ in
theme-spring = callPackage ../servers/icingaweb2/theme-spring { };
};
imgproxy = callPackage ../servers/imgproxy { };
imgproxy = callPackage ../servers/imgproxy {
inherit (darwin.apple_sdk.frameworks) Security;
};
ircdHybrid = callPackage ../servers/irc/ircd-hybrid { };