mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
ouch: 0.3.1 -> 0.4.0
Changelog: https://github.com/ouch-org/ouch/blob/0.4.0/CHANGELOG.md
This commit is contained in:
parent
42337aad35
commit
9e279b7bd3
@ -12,36 +12,34 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ouch";
|
||||
version = "0.3.1";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ouch-org";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-I9CgkYxcK+Ih9UlcYBa8QAZZsPvzPUK5ZUYKPxzgs38=";
|
||||
sha256 = "sha256-XB0J7Qeru+FX5YprepglfTndS8b3zsAw1b9mc4n6EdA=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-jEprWtIl5LihD9fOMYHGGlk0+h4woUlwUWNfSkd2t10=";
|
||||
cargoSha256 = "sha256-aW1aDXxs64ScocrnlsGy2+NAs6aC8F0/S1f32f9BDJU=";
|
||||
|
||||
nativeBuildInputs = [ help2man installShellFiles pkg-config ];
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
|
||||
buildInputs = [ bzip2 xz zlib zstd ];
|
||||
|
||||
buildFeatures = [ "zstd/pkg-config" ];
|
||||
|
||||
postInstall = ''
|
||||
help2man $out/bin/ouch > ouch.1
|
||||
installManPage ouch.1
|
||||
|
||||
completions=($releaseDir/build/ouch-*/out/completions)
|
||||
installShellCompletion $completions/ouch.{bash,fish} --zsh $completions/_ouch
|
||||
installManPage artifacts/*.1
|
||||
installShellCompletion artifacts/ouch.{bash,fish} --zsh artifacts/_ouch
|
||||
'';
|
||||
|
||||
GEN_COMPLETIONS = 1;
|
||||
OUCH_ARTIFACTS_FOLDER = "artifacts";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command-line utility for easily compressing and decompressing files and directories";
|
||||
homepage = "https://github.com/ouch-org/ouch";
|
||||
changelog = "https://github.com/ouch-org/ouch/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda psibi ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user