mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
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 {
|
||||
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;
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user