Merge pull request #206053 from urandom2/imaginary

Fixes https://github.com/NixOS/nixpkgs/issues/204482
This commit is contained in:
Sandro 2022-12-14 21:56:51 +01:00 committed by GitHub
commit 45babd80d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ 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 ];
};
}

View file

@ -23930,6 +23930,8 @@ with pkgs;
inspircdMinimal = inspircd.override { extraModules = []; };
imaginary = callPackage ../servers/imaginary {};
imgproxy = callPackage ../servers/imgproxy { };
irccat = callPackage ../servers/irc/irccat { };