mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitea,
|
|
pkg-config,
|
|
udev,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "leviculum";
|
|
version = "0.9.0";
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "Lew_Palm";
|
|
repo = "leviculum";
|
|
tag = "v${finalAttrs.version}";
|
|
fetchSubmodules = false;
|
|
hash = "sha256-mkYhTvareotglj03jRkcIaj0SN2IBFyioDxQN3Wuu+I=";
|
|
};
|
|
|
|
cargoHash = "sha256-0LuzJK7I4+WofgSDJZM5ggo5z5TAk7kPJsEjkO7QIHg=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
udev
|
|
];
|
|
|
|
# Most of the tests are failing, I couldn't figure out how to fix them, so I disable them for now.
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/lnsd";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Full Rust implementation of the Reticulum network stack, for embedded, server, desktop and mobile";
|
|
homepage = "https://codeberg.org/Lew_Palm/leviculum";
|
|
changelog = "https://codeberg.org/Lew_Palm/leviculum/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
};
|
|
})
|