nvrs: init at 0.1.9

Co-authored-by: azey <me@azey.net>
Signed-off-by: adam <me@adamperkowski.dev>
This commit is contained in:
adam
2025-11-23 13:48:59 +01:00
committed by Adam Perkowski
co-authored by azey
parent 98e86d72b1
commit 61b868358e
+56
View File
@@ -0,0 +1,56 @@
{
lib,
nix-update-script,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "nvrs";
version = "0.1.9";
src = fetchFromGitHub {
owner = "adamperkowski";
repo = "nvrs";
tag = "v${finalAttrs.version}";
hash = "sha256-6ATkebFYuOOvhzSO+gClPbtaz9/Zph4m8/cqkufRYFw=";
};
cargoHash = "sha256-h3egaj4RQImxIf0MB8ZM9V92Xlml5BK++s7RJQwAk+E=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildFeatures = [ "cli" ];
cargoBuildFlags = [
"--bin"
"nvrs"
];
# Skip tests that rely on network access.
# We're also not running cli tokio tests because they don't implement skipping functionality.
cargoTestFlags = [
"--lib"
"--"
"--skip=api::aur::request_test"
"--skip=api::crates_io::request_test"
"--skip=api::gitea::request_test"
"--skip=api::github::request_test"
"--skip=api::gitlab::request_test"
"--skip=api::regex::request_test"
];
passthru.update-script = nix-update-script { };
meta = {
description = "Fast new version checker for software releases";
homepage = "https://nvrs.adamperkowski.dev";
changelog = "https://github.com/adamperkowski/nvrs/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ adamperkowski ];
mainProgram = "nvrs";
platforms = lib.platforms.linux;
};
})