mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
066db11215
This reverts commit4e6bf03504
, reversing changes made toafd997aab6
. Instead we propagate those frameworks from the compiler again
31 lines
758 B
Nix
31 lines
758 B
Nix
{ lib, buildGoModule, fetchFromGitHub, pkg-config, vips, gobject-introspection }:
|
|
|
|
buildGoModule rec {
|
|
pname = "imgproxy";
|
|
version = "2.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
sha256 = "00hhgh6nrzg2blc6yl8rph5h5w7swlkbh0zgsj7xr0lkm10879pc";
|
|
rev = "v${version}";
|
|
};
|
|
|
|
modSha256 = "0kgd8lwcdns3skvd4bj4z85mq6hkk79mb0zzwky0wqxni8f73s6w";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ gobject-introspection vips ];
|
|
|
|
preBuild = ''
|
|
export CGO_LDFLAGS_ALLOW='-(s|w)'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast and secure on-the-fly image processing server written in Go";
|
|
homepage = "https://imgproxy.net";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ paluh ];
|
|
};
|
|
}
|