13 src = fetchFromGitHub {
17 hash = "sha256-oEkFoZMaNNJPMisqpIneeLK/sA23gaTWJ4nqtDHkrwA=";
21 # add -return-size flag recommend by Nextcloud
22 # https://github.com/h2non/imaginary/pull/382
24 name = "return-width-and-height-of-generated-images.patch";
25 url = "https://github.com/h2non/imaginary/commit/cfbf8d724cd326e835dfcb01e7224397c46037d3.patch";
26 hash = "sha256-TwZ5WU5g9LXrenpfY52jYsc6KsEt2fjDq7cPz6ILlhA=";
30 vendorHash = "sha256-BluY6Fz4yAKJ/A9aFuPPsgQN9N/5yd8g8rDfIZeYz5U=";
32 buildInputs = [ vips ];
34 nativeBuildInputs = [ pkg-config ];
39 "-X main.Version=${version}"
42 __darwinAllowLocalNetworking = true;
45 homepage = "https://fly.io/docs/app-guides/run-a-global-image-service";
46 changelog = "https://github.com/h2non/${pname}/releases/tag/v${version}";
47 description = "Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing";
48 license = licenses.mit;
49 maintainers = with maintainers; [ dotlambda urandom ];
50 mainProgram = "imaginary";