blob: 629cf4ed11e13ab8d3bcd1d9e5930fb9eff35c5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 ];
};
}
|