mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nurl: init at 0.1.1
This commit is contained in:
parent
0fafbb59b6
commit
67b0f840da
37
pkgs/tools/misc/nurl/default.nix
Normal file
37
pkgs/tools/misc/nurl/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user