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
+18 -2
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 {
pname = "ouch";
@@ -13,7 +23,13 @@ rustPlatform.buildRustPackage rec {
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 = ''
help2man $out/bin/ouch > ouch.1