imgproxy: fix build on darwin
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user