mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #145495 from figsoda/ouch-no-vendor
ouch: don't use vendored sources
This commit is contained in:
commit
05b3e7c78a
@ -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 New Issue
Block a user