14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitea {
19 domain = "git.asonix.dog";
23 sha256 = "sha256-q0h+H3260CSpZemVuyaiwSHDi8yKXUX8Df9ih3IzAWo=";
26 cargoHash = "sha256-lMnJyiKhO7fGrjHkyZjheN0w7GgVs7Jnszw1KXo7vTg=";
28 # needed for internal protobuf c wrapper library
29 PROTOC = "${protobuf}/bin/protoc";
30 PROTOC_INCLUDE = "${protobuf}/include";
32 nativeBuildInputs = [ makeWrapper ];
33 buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
36 wrapProgram "$out/bin/pict-rs" \
37 --prefix PATH : "${lib.makeBinPath [ imagemagick ffmpeg exiftool ]}"
40 passthru.tests = { inherit (nixosTests) pict-rs; };
43 broken = stdenv.hostPlatform.isDarwin;
44 description = "Simple image hosting service";
45 mainProgram = "pict-rs";
46 homepage = "https://git.asonix.dog/asonix/pict-rs";
47 license = with licenses; [ agpl3Plus ];
48 maintainers = with maintainers; [ happysalada ];