14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitea {
19 domain = "git.asonix.dog";
23 sha256 = "mEZBFDR+/aMRFw54Yq+f1gyEz8H+5IggNCpzv3UdDFg=";
27 lockFile = ./Cargo-0.3.lock;
29 "aws-creds-0.29.1" = "bwDFmDPThMLrpaB7cAj/2/vJKhbX6/DqgcIRBVKSZhg=";
33 # needed for internal protobuf c wrapper library
34 PROTOC = "${protobuf}/bin/protoc";
35 PROTOC_INCLUDE = "${protobuf}/include";
37 nativeBuildInputs = [ makeWrapper ];
38 buildInputs = lib.optionals stdenv.isDarwin [ Security ];
41 wrapProgram "$out/bin/pict-rs" \
42 --prefix PATH : "${lib.makeBinPath [ imagemagick ffmpeg exiftool ]}"
45 passthru.tests = { inherit (nixosTests) pict-rs; };
48 description = "Simple image hosting service";
49 mainProgram = "pict-rs";
50 homepage = "https://git.asonix.dog/asonix/pict-rs";
51 license = with licenses; [ agpl3Plus ];
52 maintainers = with maintainers; [ happysalada ];