3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/imaginary/default.nix
2022-12-14 10:51:14 +00:00

34 lines
862 B
Nix

{ lib, buildGoModule, fetchFromGitHub, pkg-config, vips }:
buildGoModule rec {
pname = "imaginary";
version = "1.2.4";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "v${version}";
hash = "sha256-oEkFoZMaNNJPMisqpIneeLK/sA23gaTWJ4nqtDHkrwA=";
};
vendorHash = "sha256-BluY6Fz4yAKJ/A9aFuPPsgQN9N/5yd8g8rDfIZeYz5U=";
buildInputs = [ vips ];
nativeBuildInputs = [ pkg-config ];
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
meta = with lib; {
homepage = "https://fly.io/docs/app-guides/run-a-global-image-service";
changelog = "https://github.com/h2non/${pname}/releases/tag/v${version}";
description = "Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing";
license = licenses.mit;
maintainers = with maintainers; [ urandom ];
};
}