26 lines
543 B
Nix
26 lines
543 B
Nix
|
{ lib
|
||
|
, nixosTests
|
||
|
, protobuf
|
||
|
, rustPlatform
|
||
|
}:
|
||
|
|
||
|
rustPlatform.buildRustPackage {
|
||
|
pname = "pict-rs-admin";
|
||
|
version = "0.5.0-alpha.1";
|
||
|
src = ./.;
|
||
|
cargoLock.lockFile = ./Cargo.lock;
|
||
|
|
||
|
PROTOC = "${protobuf}/bin/protoc";
|
||
|
PROTOC_INCLUDE = "${protobuf}/include";
|
||
|
|
||
|
nativeBuildInputs = [ ];
|
||
|
|
||
|
passthru.tests = { inherit (nixosTests) pict-rs-admin; };
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "A simple image hosting service";
|
||
|
homepage = "https://git.asonix.dog/asonix/pict-rs-admin";
|
||
|
license = with licenses; [ agpl3Plus ];
|
||
|
};
|
||
|
}
|