diff options
author | figsoda <figsoda@pm.me> | 2022-12-31 20:07:08 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-12-31 20:25:23 -0500 |
commit | fad9d559a3d2a5ed34a1cb841e3d4bc5f7081ae5 (patch) | |
tree | d20d49cdca21f5794c135a55e4d7e2beffe5e75e /pkgs/tools/misc/nurl | |
parent | ac949b889280f7258021d7af4e08d619bd7686a8 (diff) |
nurl: 0.1.1 -> 0.2.1
Diff: https://github.com/nix-community/nurl/compare/v0.1.1...v0.2.1 Changelog: https://github.com/nix-community/nurl/blob/v0.2.1/CHANGELOG.md
Diffstat (limited to 'pkgs/tools/misc/nurl')
-rw-r--r-- | pkgs/tools/misc/nurl/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/tools/misc/nurl/default.nix b/pkgs/tools/misc/nurl/default.nix index f52ecf18b8cf1..bf8e75deb6e1c 100644 --- a/pkgs/tools/misc/nurl/default.nix +++ b/pkgs/tools/misc/nurl/default.nix @@ -1,6 +1,7 @@ { lib , rustPlatform , fetchFromGitHub +, installShellFiles , makeWrapper , gitMinimal , mercurial @@ -9,24 +10,31 @@ rustPlatform.buildRustPackage rec { pname = "nurl"; - version = "0.1.1"; + version = "0.2.1"; src = fetchFromGitHub { owner = "nix-community"; repo = "nurl"; rev = "v${version}"; - hash = "sha256-dN53Xpb3zOVI6Xpi+RRFQPLIMP3+ATMXpYpFGgFpzPw="; + hash = "sha256-bL0HNoHHFH7ouw4gFl0QJCjAOCzHPnTS76OmrgQN3V4="; }; - cargoSha256 = "sha256-bdxHxLUeIPlRw7NKg0nTaDAkQam80eepqbuAmFVIMNs="; + cargoSha256 = "sha256-UfJeYAN1f/JvPpEKzlG2BzUulreDqv3NEnSoOb2TlM0="; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ + installShellFiles + makeWrapper + ]; postInstall = '' wrapProgram $out/bin/nurl \ --prefix PATH : ${lib.makeBinPath [ gitMinimal mercurial nix ]} + installManPage artifacts/nurl.1 + installShellCompletion artifacts/nurl.{bash,fish} --zsh artifacts/_nurl ''; + GEN_ARTIFACTS = "artifacts"; + meta = with lib; { description = "Command-line tool to generate Nix fetcher calls from repository URLs"; homepage = "https://github.com/nix-community/nurl"; |