webnsupdate: Init at version 0.1.0

This commit is contained in:
Jalil David Salamé Messina 2024-05-03 20:29:10 +02:00
commit 43d62fa7d6
Signed by: jalil
GPG key ID: F016B9E770737A0B
10 changed files with 2320 additions and 0 deletions

24
default.nix Normal file
View file

@ -0,0 +1,24 @@
{
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";
};
}