2024-05-03 20:29:10 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
}: let
|
|
|
|
readToml = path: builtins.fromTOML (builtins.readFile path);
|
|
|
|
cargoToml = readToml ./Cargo.toml;
|
|
|
|
pname = cargoToml.package.name;
|
|
|
|
inherit (cargoToml.package) version description;
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
|
|
|
src = builtins.path {
|
|
|
|
path = ./.;
|
|
|
|
name = "${pname}-source";
|
|
|
|
};
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
useNextest = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit description;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/jalil-salame/webnsupdate";
|
2024-05-08 21:37:19 +02:00
|
|
|
mainProgram = "webnsupdate";
|
2024-05-03 20:29:10 +02:00
|
|
|
};
|
|
|
|
}
|