ouch: don't use vendored sources

This commit is contained in:
figsoda 2021-11-11 09:05:34 -05:00
parent b3e4559c32
commit 8437f3acaf

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