Merge pull request #145495 from figsoda/ouch-no-vendor

ouch: don't use vendored sources
This commit is contained in:
figsoda 2021-11-11 11:20:23 -05:00 committed by GitHub
commit 05b3e7c78a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,14 @@
{ lib, rustPlatform, fetchFromGitHub, help2man, installShellFiles }: { lib
, rustPlatform
, fetchFromGitHub
, help2man
, installShellFiles
, pkg-config
, bzip2
, xz
, zlib
, zstd
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "ouch"; pname = "ouch";
@ -13,7 +23,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-jEprWtIl5LihD9fOMYHGGlk0+h4woUlwUWNfSkd2t10="; cargoSha256 = "sha256-jEprWtIl5LihD9fOMYHGGlk0+h4woUlwUWNfSkd2t10=";
nativeBuildInputs = [ help2man installShellFiles ]; nativeBuildInputs = [ help2man installShellFiles pkg-config ];
buildInputs = [ bzip2 xz zlib zstd ];
cargoBuildFlags = [ "--features" "zstd/pkg-config" ];
cargoTestFlags = cargoBuildFlags;
postInstall = '' postInstall = ''
help2man $out/bin/ouch > ouch.1 help2man $out/bin/ouch > ouch.1