pict-rs-proxy/pict-rs-proxy.nix

28 lines
563 B
Nix
Raw Permalink Normal View History

2023-03-10 03:30:31 +00:00
{ lib
, makeWrapper
, nixosTests
, protobuf
, rustPlatform
, stdenv
}:
rustPlatform.buildRustPackage {
pname = "pict-rs-proxy";
2023-05-25 18:41:40 +00:00
version = "0.4.0-rc.2";
2023-03-10 03:30:31 +00:00
src = ./.;
2023-05-25 18:41:40 +00:00
cargoLock.lockFile = ./Cargo.lock;
2023-03-10 03:30:31 +00:00
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
nativeBuildInputs = [ ];
passthru.tests = { inherit (nixosTests) pict-rs-proxy; };
meta = with lib; {
description = "A simple image hosting service";
homepage = "https://git.asonix.dog/asonix/pict-rs-proxy";
license = with licenses; [ agpl3Plus ];
};
}