Merge pull request #119072 from stephank/imgproxy-darwin
imgproxy: fix build on Darwin
This commit is contained in:
commit
b196ddbac4
@ -1,4 +1,5 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection }:
|
{ lib, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection
|
||||||
|
, stdenv, libunwind }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "imgproxy";
|
pname = "imgproxy";
|
||||||
@ -17,7 +18,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ gobject-introspection vips ];
|
buildInputs = [ gobject-introspection vips ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ libunwind ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export CGO_LDFLAGS_ALLOW='-(s|w)'
|
export CGO_LDFLAGS_ALLOW='-(s|w)'
|
||||||
|
Loading…
Reference in New Issue
Block a user