nurl: init at 0.1.1

This commit is contained in:
figsoda 2022-12-29 21:23:45 -05:00
parent 0fafbb59b6
commit 67b0f840da
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, gitMinimal
, mercurial
, nix
}:
rustPlatform.buildRustPackage rec {
pname = "nurl";
version = "0.1.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = "nurl";
rev = "v${version}";
hash = "sha256-dN53Xpb3zOVI6Xpi+RRFQPLIMP3+ATMXpYpFGgFpzPw=";
};
cargoSha256 = "sha256-bdxHxLUeIPlRw7NKg0nTaDAkQam80eepqbuAmFVIMNs=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/nurl \
--prefix PATH : ${lib.makeBinPath [ gitMinimal mercurial nix ]}
'';
meta = with lib; {
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 = licenses.mpl20;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -10036,6 +10036,8 @@ with pkgs;
numlockx = callPackage ../tools/X11/numlockx { };
nurl = callPackage ../tools/misc/nurl { };
nttcp = callPackage ../tools/networking/nttcp { };
ntttcp = callPackage ../tools/networking/ntttcp { };