diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-02-07 18:21:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 18:21:44 +0000 |
commit | 1733a19b0283903e291b7c817b4af6b07681fac8 (patch) | |
tree | e9b36975b2b9defa380e05692fce32433854481e | |
parent | de88795283c8459e77ed401b984900d54235795b (diff) | |
parent | 2f840975669faf39134e8b59e4771ae9d338fff7 (diff) |
Merge pull request #112110 from payasrelekar/ht
ht-rust: init at 0.5.0
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/networking/ht-rust/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
3 files changed, 44 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 78e2c689c9050..b8f7b7d38f10f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7101,6 +7101,12 @@ githubId = 15645854; name = "Brad Christensen"; }; + payas = { + email = "relekarpayas@gmail.com"; + github = "payasrelekar"; + githubId = 24254289; + name = "Payas Relekar"; + }; pawelpacana = { email = "pawel.pacana@gmail.com"; github = "pawelpacana"; diff --git a/pkgs/tools/networking/ht-rust/default.nix b/pkgs/tools/networking/ht-rust/default.nix new file mode 100644 index 0000000000000..629cf4ed11e13 --- /dev/null +++ b/pkgs/tools/networking/ht-rust/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c905b2e9fec00..82b107355e1eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22662,6 +22662,10 @@ in ht = callPackage ../applications/editors/ht { }; + ht-rust = callPackage ../tools/networking/ht-rust { + inherit (darwin.apple_sdk.frameworks) Security; + }; + hubstaff = callPackage ../applications/misc/hubstaff { }; hue-cli = callPackage ../tools/networking/hue-cli { }; |