Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
makeBinaryWrapper,
|
|
gitMinimal,
|
|
mercurial,
|
|
nix,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nurl";
|
|
version = "0.3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nurl";
|
|
rev = "v${version}";
|
|
hash = "sha256-rVqF+16esE27G7GS55RT91tD4x/GAzfVlIR0AgSknz0=";
|
|
};
|
|
|
|
cargoHash = "sha256-OUJGxNqytwz7530ByqkanpseVJJXAea/L2GIHnuSIqk=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
# tests require internet access
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/nurl \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
gitMinimal
|
|
mercurial
|
|
nix
|
|
]
|
|
}
|
|
installManPage artifacts/nurl.1
|
|
installShellCompletion artifacts/nurl.{bash,fish} --zsh artifacts/_nurl
|
|
'';
|
|
|
|
env = {
|
|
GEN_ARTIFACTS = "artifacts";
|
|
};
|
|
|
|
meta = {
|
|
description = "Command-line tool to generate Nix fetcher calls from repository URLs";
|
|
homepage = "https://github.com/nix-community/nurl";
|
|
changelog = "https://github.com/nix-community/nurl/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ figsoda ];
|
|
mainProgram = "nurl";
|
|
};
|
|
}
|