diff --git a/pkgs/servers/imaginary/default.nix b/pkgs/servers/imaginary/default.nix new file mode 100644 index 000000000000..cfab6e2e9030 --- /dev/null +++ b/pkgs/servers/imaginary/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d645a9cdbfe..e6685745fb44 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23930,6 +23930,8 @@ with pkgs; inspircdMinimal = inspircd.override { extraModules = []; }; + imaginary = callPackage ../servers/imaginary {}; + imgproxy = callPackage ../servers/imgproxy { }; irccat = callPackage ../servers/irc/irccat { };