commit
1733a19b02
@ -7101,6 +7101,12 @@
|
|||||||
githubId = 15645854;
|
githubId = 15645854;
|
||||||
name = "Brad Christensen";
|
name = "Brad Christensen";
|
||||||
};
|
};
|
||||||
|
payas = {
|
||||||
|
email = "relekarpayas@gmail.com";
|
||||||
|
github = "payasrelekar";
|
||||||
|
githubId = 24254289;
|
||||||
|
name = "Payas Relekar";
|
||||||
|
};
|
||||||
pawelpacana = {
|
pawelpacana = {
|
||||||
email = "pawel.pacana@gmail.com";
|
email = "pawel.pacana@gmail.com";
|
||||||
github = "pawelpacana";
|
github = "pawelpacana";
|
||||||
|
34
pkgs/tools/networking/ht-rust/default.nix
Normal file
34
pkgs/tools/networking/ht-rust/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "ht-rust";
|
||||||
|
version = "0.5.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ducaale";
|
||||||
|
repo = "ht";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "cr/iavCRdFYwVR6Iemm1hLKqd0OFG1iDmxpQ9fiwOmU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "uB23/9AjPwCwf9ljE8ai7zJQZqE0SoBPzRqqBOXa9QA=";
|
||||||
|
|
||||||
|
buildInputs = [ ] ++ lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
|
# Symlink to avoid conflict with pre-existing ht package
|
||||||
|
postInstall = ''
|
||||||
|
ln -s $out/bin/ht $out/bin/ht-rust
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
postInstallCheck = ''
|
||||||
|
$out/bin/ht-rust --help > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Yet another HTTPie clone in Rust";
|
||||||
|
homepage = "https://github.com/ducaale/ht";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.payas ];
|
||||||
|
};
|
||||||
|
}
|
@ -22662,6 +22662,10 @@ in
|
|||||||
|
|
||||||
ht = callPackage ../applications/editors/ht { };
|
ht = callPackage ../applications/editors/ht { };
|
||||||
|
|
||||||
|
ht-rust = callPackage ../tools/networking/ht-rust {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
hubstaff = callPackage ../applications/misc/hubstaff { };
|
hubstaff = callPackage ../applications/misc/hubstaff { };
|
||||||
|
|
||||||
hue-cli = callPackage ../tools/networking/hue-cli { };
|
hue-cli = callPackage ../tools/networking/hue-cli { };
|
||||||
|
Loading…
Reference in New Issue
Block a user