2023-03-23 18:51:23 +00:00
|
|
|
{ lib
|
|
|
|
, makeWrapper
|
|
|
|
, nixosTests
|
|
|
|
, protobuf
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "relay";
|
2023-06-03 18:10:19 +00:00
|
|
|
version = "0.3.82";
|
2023-03-23 18:51:23 +00:00
|
|
|
src = ./.;
|
2023-06-03 18:10:19 +00:00
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
2023-03-23 18:51:23 +00:00
|
|
|
|
|
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
|
|
PROTOC_INCLUDE = "${protobuf}/include";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ];
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) relay; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple image hosting service";
|
|
|
|
homepage = "https://git.asonix.dog/asonix/relay";
|
|
|
|
license = with licenses; [ agpl3Plus ];
|
|
|
|
};
|
|
|
|
}
|