mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "nxv";
|
|
version = "0.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "utensils";
|
|
repo = "nxv";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-PJs+qvzLKBa3b5a4ZWGU02BVAqyoZj3+mhphBTSmpS0=";
|
|
};
|
|
|
|
cargoHash = "sha256-2nZpwkaVedkH3dHkaB/QSTthylwMw6S08JhgiZaBX7M=";
|
|
|
|
# Tests use mockito which needs to bind to localhost
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Find any version of any Nix package instantly";
|
|
longDescription = ''
|
|
nxv indexes nixpkgs channel releases (2016+) to help you discover
|
|
when packages were added, which versions existed, and the exact
|
|
commit to use with `nix shell nixpkgs/<commit>#package`.
|
|
'';
|
|
homepage = "https://nxv.urandom.io";
|
|
changelog = "https://github.com/utensils/nxv/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
yiyu
|
|
jamesbrink
|
|
];
|
|
mainProgram = "nxv";
|
|
};
|
|
})
|