mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
Merge pull request #78910 from serokell/libarchive-zstd
libarchive: link to zstd (split zstd output)
This commit is contained in:
commit
f8d9f59abe
@ -1,6 +1,6 @@
|
||||
{
|
||||
fetchFromGitHub, stdenv, pkgconfig, autoreconfHook,
|
||||
acl, attr, bzip2, e2fsprogs, libxml2, lzo, openssl, sharutils, xz, zlib,
|
||||
acl, attr, bzip2, e2fsprogs, libxml2, lzo, openssl, sharutils, xz, zlib, zstd,
|
||||
|
||||
# Optional but increases closure only negligibly.
|
||||
xarSupport ? true,
|
||||
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
outputs = [ "out" "lib" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||
buildInputs = [ sharutils zlib bzip2 openssl xz lzo ]
|
||||
buildInputs = [ sharutils zlib bzip2 openssl xz lzo zstd ]
|
||||
++ stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ]
|
||||
++ stdenv.lib.optional xarSupport libxml2;
|
||||
|
||||
|
@ -50,12 +50,14 @@ stdenv.mkDerivation rec {
|
||||
preInstall = ''
|
||||
substituteInPlace ../programs/zstdgrep \
|
||||
--replace ":-grep" ":-${gnugrep}/bin/grep" \
|
||||
--replace ":-zstdcat" ":-$out/bin/zstdcat"
|
||||
--replace ":-zstdcat" ":-$bin/bin/zstdcat"
|
||||
|
||||
substituteInPlace ../programs/zstdless \
|
||||
--replace "zstdcat" "$out/bin/zstdcat"
|
||||
--replace "zstdcat" "$bin/bin/zstdcat"
|
||||
'';
|
||||
|
||||
outputs = [ "bin" "dev" "man" "out" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Zstandard real-time compression algorithm";
|
||||
longDescription = ''
|
||||
|
@ -7916,7 +7916,11 @@ in
|
||||
|
||||
zssh = callPackage ../tools/networking/zssh { };
|
||||
|
||||
zstd = callPackage ../tools/compression/zstd { };
|
||||
zstd = callPackage ../tools/compression/zstd {
|
||||
cmake = cmake.override {
|
||||
libarchive = libarchive.override { zstd = null; };
|
||||
};
|
||||
};
|
||||
|
||||
zsync = callPackage ../tools/compression/zsync { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user