imgproxy: fix build on darwin
This commit is contained in:
parent
b149f2ee80
commit
ed310da737
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection }:
|
{ stdenv, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "imgproxy";
|
pname = "imgproxy";
|
||||||
@ -15,13 +15,14 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ gobject-introspection vips ];
|
buildInputs = [ gobject-introspection vips ]
|
||||||
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export CGO_LDFLAGS_ALLOW='-(s|w)'
|
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";
|
description = "Fast and secure on-the-fly image processing server written in Go";
|
||||||
homepage = "https://imgproxy.net";
|
homepage = "https://imgproxy.net";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|||||||
@ -15566,7 +15566,9 @@ in
|
|||||||
theme-spring = callPackage ../servers/icingaweb2/theme-spring { };
|
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 { };
|
ircdHybrid = callPackage ../servers/irc/ircd-hybrid { };
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user