From 4df2f78ec72f6a8d2fe286cd34eb3acdfcac81f3 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 29 May 2020 21:03:02 +0200 Subject: [PATCH] Revert "Merge pull request #78910 from serokell/libarchive-zstd" Should go to staging instead. This reverts commit f8d9f59abe02ce97f621da24723156934a54611e, reversing changes made to b27a19d5bf799f581a8afc2b554f178e58c1f524. --- pkgs/development/libraries/libarchive/default.nix | 4 ++-- pkgs/tools/compression/zstd/default.nix | 6 ++---- pkgs/top-level/all-packages.nix | 6 +----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/libarchive/default.nix b/pkgs/development/libraries/libarchive/default.nix index 69feed39818c..0f6b196d1507 100644 --- a/pkgs/development/libraries/libarchive/default.nix +++ b/pkgs/development/libraries/libarchive/default.nix @@ -1,6 +1,6 @@ { fetchFromGitHub, stdenv, pkgconfig, autoreconfHook, - acl, attr, bzip2, e2fsprogs, libxml2, lzo, openssl, sharutils, xz, zlib, zstd, + acl, attr, bzip2, e2fsprogs, libxml2, lzo, openssl, sharutils, xz, zlib, # 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 zstd ] + buildInputs = [ sharutils zlib bzip2 openssl xz lzo ] ++ stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ] ++ stdenv.lib.optional xarSupport libxml2; diff --git a/pkgs/tools/compression/zstd/default.nix b/pkgs/tools/compression/zstd/default.nix index d1ed0da1d149..2f89331f92c6 100644 --- a/pkgs/tools/compression/zstd/default.nix +++ b/pkgs/tools/compression/zstd/default.nix @@ -50,14 +50,12 @@ stdenv.mkDerivation rec { preInstall = '' substituteInPlace ../programs/zstdgrep \ --replace ":-grep" ":-${gnugrep}/bin/grep" \ - --replace ":-zstdcat" ":-$bin/bin/zstdcat" + --replace ":-zstdcat" ":-$out/bin/zstdcat" substituteInPlace ../programs/zstdless \ - --replace "zstdcat" "$bin/bin/zstdcat" + --replace "zstdcat" "$out/bin/zstdcat" ''; - outputs = [ "bin" "dev" "man" "out" ]; - meta = with stdenv.lib; { description = "Zstandard real-time compression algorithm"; longDescription = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index faa8c8fc416b..c95d210ffe5d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7916,11 +7916,7 @@ in zssh = callPackage ../tools/networking/zssh { }; - zstd = callPackage ../tools/compression/zstd { - cmake = cmake.override { - libarchive = libarchive.override { zstd = null; }; - }; - }; + zstd = callPackage ../tools/compression/zstd { }; zsync = callPackage ../tools/compression/zsync { };