From ed310da7370474e65c1ced5037189be91ed06755 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 05:26:00 -0500 Subject: [PATCH] imgproxy: fix build on darwin --- pkgs/servers/imgproxy/default.nix | 7 ++++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/imgproxy/default.nix b/pkgs/servers/imgproxy/default.nix index 4cdfddcff6f4..c7d0d910ac1e 100644 --- a/pkgs/servers/imgproxy/default.nix +++ b/pkgs/servers/imgproxy/default.nix @@ -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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fd59172bbda6..dc004103a87f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };