Skip to content

Commit

Permalink
Merge pull request #25679 from orivej/zstd
Browse files Browse the repository at this point in the history
zstd: 1.1.3 -> 1.2.0
  • Loading branch information
Mic92 committed May 11, 2017
2 parents 93f4755 + cb1af17 commit b77a346
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions pkgs/tools/compression/zstd/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ stdenv, fetchFromGitHub
{ stdenv, fetchFromGitHub, gnugrep
, legacySupport ? false }:

stdenv.mkDerivation rec {
name = "zstd-${version}";
version = "1.1.3";
version = "1.2.0";

src = fetchFromGitHub {
sha256 = "1d46hs6pyq55izcmnk7hzvbl8iyxh7bp7qchc7rl8ay396ax2sd5";
sha256 = "01b5w4yrwa8lgnjyi42zxjhw8cfyh8yfhdsjr04y5qsblz0hv0zl";
rev = "v${version}";
repo = "zstd";
owner = "facebook";
Expand All @@ -24,6 +24,15 @@ stdenv.mkDerivation rec {
"PREFIX=$(out)"
];

preInstall = ''
substituteInPlace programs/zstdgrep \
--replace "=grep" "=${gnugrep}/bin/grep" \
--replace "=zstdcat" "=$out/bin/zstdcat"
substituteInPlace programs/zstdless \
--replace "zstdcat" "$out/bin/zstdcat"
'';

meta = with stdenv.lib; {
description = "Zstandard real-time compression algorithm";
longDescription = ''
Expand All @@ -40,6 +49,6 @@ stdenv.mkDerivation rec {
license = with licenses; [ gpl2Plus bsd2 ];

platforms = platforms.unix;
maintainers = with maintainers; [ nckx ];
maintainers = with maintainers; [ nckx orivej ];
};
}

0 comments on commit b77a346

Please sign in to comment.