Merge pull request #145495 from figsoda/ouch-no-vendor
ouch: don't use vendored sources
This commit is contained in:
commit
05b3e7c78a
1 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue