xh: 0.17.0 -> 0.18.0, add figsoda as a maintainer
Diff: https://github.com/ducaale/xh/compare/v0.17.0...v0.18.0 Changelog: https://github.com/ducaale/xh/blob/v0.18.0/CHANGELOG.md
This commit is contained in:
parent
5ab8b5ae26
commit
c04117d475
|
@ -1,41 +1,40 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
, lib
|
|
||||||
, pkg-config
|
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, pkg-config
|
||||||
, withNativeTls ? true
|
, withNativeTls ? true
|
||||||
|
, stdenv
|
||||||
, Security
|
, Security
|
||||||
, libiconv
|
, openssl
|
||||||
, openssl }:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "xh";
|
pname = "xh";
|
||||||
version = "0.17.0";
|
version = "0.18.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ducaale";
|
owner = "ducaale";
|
||||||
repo = "xh";
|
repo = "xh";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-4rFtbCfx6QFdp62FPjOYAhSWM03g3rXsF4pD22+EhcA=";
|
sha256 = "sha256-2qZ+FGc8Y8HLJaQluVv036NG77lvaqsc3I5cmkD+r/M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-av/F1FHMd0o9NvwA2Q9mqSd89ZEqmUaVxC+JmSwEHhI=";
|
cargoSha256 = "sha256-0lPEZ8Th3PAw6AEnb+ciKMhi5wysFCvYwiHd9/o8VVc=";
|
||||||
|
|
||||||
buildFeatures = lib.optional withNativeTls "native-tls";
|
buildFeatures = lib.optional withNativeTls "native-tls";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||||
|
|
||||||
buildInputs = lib.optionals withNativeTls
|
buildInputs = lib.optionals withNativeTls
|
||||||
(if stdenv.isDarwin then [ Security libiconv ] else [ openssl ]);
|
(if stdenv.isDarwin then [ Security ] else [ openssl ]);
|
||||||
|
|
||||||
# Get openssl-sys to use pkg-config
|
# Get openssl-sys to use pkg-config
|
||||||
OPENSSL_NO_VENDOR = 1;
|
OPENSSL_NO_VENDOR = 1;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd xh \
|
installShellCompletion \
|
||||||
--bash completions/xh.bash \
|
completions/xh.{bash,fish} \
|
||||||
--fish completions/xh.fish \
|
|
||||||
--zsh completions/_xh
|
--zsh completions/_xh
|
||||||
|
|
||||||
installManPage doc/xh.1
|
installManPage doc/xh.1
|
||||||
|
@ -43,7 +42,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
install -m444 -Dt $out/share/doc/xh README.md CHANGELOG.md
|
install -m444 -Dt $out/share/doc/xh README.md CHANGELOG.md
|
||||||
|
|
||||||
# https://github.com/ducaale/xh#xh-and-xhs
|
|
||||||
ln -s $out/bin/xh $out/bin/xhs
|
ln -s $out/bin/xh $out/bin/xhs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -61,6 +59,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
homepage = "https://github.com/ducaale/xh";
|
homepage = "https://github.com/ducaale/xh";
|
||||||
changelog = "https://github.com/ducaale/xh/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/ducaale/xh/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ payas ];
|
maintainers = with maintainers; [ figsoda payas ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue