Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions pkgs/tools/compression/brotli/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch
{ lib
, stdenv
, fetchFromGitHub
, cmake
, fetchpatch
, staticOnly ? stdenv.hostPlatform.isStatic
}:

Expand All @@ -11,7 +15,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "google";
repo = "brotli";
rev = "v" + version;
rev = "v${version}";
sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c=";
};

Expand All @@ -24,8 +28,7 @@ stdenv.mkDerivation rec {
sha256 = "sOeXNVsCaBSD9i82GRUDrkyreGeQ7qaJWjjy/uLL0/0=";
});

cmakeFlags = []
++ lib.optional staticOnly "-DBUILD_SHARED_LIBS=OFF";
cmakeFlags = lib.optional staticOnly "-DBUILD_SHARED_LIBS=OFF";

outputs = [ "out" "dev" "lib" ];

Expand All @@ -36,13 +39,13 @@ stdenv.mkDerivation rec {
# This breaks on Darwin because our cmake hook tries to make a build folder
# and the wonderful bazel BUILD file is already there (yay case-insensitivity?)
prePatch = ''
rm BUILD
rm BUILD

# Upstream fixed this reference to runtime-path after the release
# and with this references g++ complains about invalid option -R
sed -i 's/ -R''${libdir}//' scripts/libbrotli*.pc.in
cat scripts/libbrotli*.pc.in
'';
# Upstream fixed this reference to runtime-path after the release
# and with this references g++ complains about invalid option -R
sed -i 's/ -R''${libdir}//' scripts/libbrotli*.pc.in
cat scripts/libbrotli*.pc.in
'';

# Don't bother with "man" output for now,
# it currently only makes the manpages hard to use.
Expand All @@ -53,10 +56,8 @@ stdenv.mkDerivation rec {
'';

meta = with lib; {
inherit (src.meta) homepage;

homepage = "https://github.com/google/brotli";
description = "A generic-purpose lossless compression algorithm and tool";

longDescription =
'' Brotli is a generic-purpose lossless compression algorithm that
compresses data using a combination of a modern variant of the LZ77
Expand All @@ -69,7 +70,6 @@ stdenv.mkDerivation rec {
in the following internet draft:
http://www.ietf.org/id/draft-alakuijala-brotli
'';

license = licenses.mit;
maintainers = with maintainers; [ freezeboy ];
platforms = platforms.all;
Expand Down
17 changes: 9 additions & 8 deletions pkgs/tools/compression/bsc/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
{ lib, stdenv, fetchurl, openmp ? null }:
{ lib, stdenv, fetchFromGitHub, openmp }:

stdenv.mkDerivation rec {
pname = "bsc";
version = "3.1.0";

src = fetchurl {
url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
src = fetchFromGitHub {
owner = "IlyaGrebnov";
repo = "libbsc";
rev = version;
sha256 = "0c0jmirh9y23kyi1jnrm13sa3xsjn54jazfr84ag45pai279fciz";
};

enableParallelBuilding = true;

buildInputs = lib.optional stdenv.isDarwin openmp;

prePatch = ''
postPatch = ''
substituteInPlace makefile \
--replace 'g++' '$(CXX)'
'';

preInstall = ''
makeFlagsArray+=("PREFIX=$out")
'';
makeFlags = [ "PREFIX=$(out)" ];

meta = with lib; {
description = "High performance block-sorting data compression library";
homepage = "http://libbsc.com/";
maintainers = with maintainers; [ ];
# Later commits changed the licence to Apache2 (no release yet, though)
license = with licenses; [ lgpl3Plus ];
platforms = platforms.unix;
Expand Down
12 changes: 6 additions & 6 deletions pkgs/tools/compression/bsdiff/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
version = "4.3";

src = fetchurl {
url = "https://www.daemonology.net/bsdiff/${pname}-${version}.tar.gz";
url = "https://www.daemonology.net/bsdiff/${pname}-${version}.tar.gz";
sha256 = "0j2zm3z271x5aw63mwhr3vymzn45p2vvrlrpm9cz2nywna41b0hq";
};

Expand All @@ -27,11 +27,11 @@ stdenv.mkDerivation rec {
cp bspatch.1 $out/share/man/man1
'';

meta = {
meta = with lib; {
description = "An efficient binary diff/patch tool";
homepage = "http://www.daemonology.net/bsdiff";
license = lib.licenses.bsd2;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.thoughtpolice ];
homepage = "https://www.daemonology.net/bsdiff/";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = [ maintainers.thoughtpolice ];
};
}
48 changes: 25 additions & 23 deletions pkgs/tools/compression/dejsonlz4/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
pname = "dejsonlz4";
version = "1.1";
src = fetchFromGitHub {
owner = "avih";
repo = pname;
rev = "v${version}";
sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
};
pname = "dejsonlz4";
version = "1.1";

src = fetchFromGitHub {
owner = "avih";
repo = pname;
rev = "v${version}";
sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
};

buildPhase = ''
${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c
'';
buildPhase = ''
${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c
'';

installPhase = ''
mkdir -p $out/bin/
cp dejsonlz4 $out/bin/
'';
installPhase = ''
mkdir -p $out/bin/
cp dejsonlz4 $out/bin/
'';

meta = with lib; {
description = "Decompress Mozilla Firefox bookmarks backup files";
homepage = "https://github.com/avih/dejsonlz4";
license = licenses.bsd2;
maintainers = with maintainers; [ mt-caret ];
platforms = platforms.all;
};
}
meta = with lib; {
description = "Decompress Mozilla Firefox bookmarks backup files";
homepage = "https://github.com/avih/dejsonlz4";
license = licenses.bsd2;
maintainers = with maintainers; [ mt-caret ];
platforms = platforms.all;
};
}
12 changes: 7 additions & 5 deletions pkgs/tools/compression/gzrt/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, zlib }:

stdenv.mkDerivation rec {
name = "gzrt-0.8";
pname = "gzrt";
version = "0.8";

src = fetchurl {
url = "https://www.urbanophile.com/arenn/coding/gzrt/${name}.tar.gz";
url = "https://www.urbanophile.com/arenn/coding/gzrt/gzrt-${version}.tar.gz";
sha256 = "1vhzazj47xfpbfhzkwalz27cc0n5gazddmj3kynhk0yxv99xrdxh";
};

Expand All @@ -15,10 +16,11 @@ stdenv.mkDerivation rec {
cp gzrecover $out/bin
'';

meta = {
meta = with lib; {
homepage = "https://www.urbanophile.com/arenn/hacking/gzrt/";
description = "The gzip Recovery Toolkit";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with maintainers; [ ];
license = licenses.gpl2Plus;
platforms = platforms.unix;
};
}
19 changes: 10 additions & 9 deletions pkgs/tools/compression/kzipmix/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{lib, stdenv, fetchurl}:
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation {
name = "kzipmix-20091108";
stdenv.mkDerivation rec {
pname = "kzipmix";
version = "20200115";

src = fetchurl {
url = "http://static.jonof.id.au/dl/kenutils/kzipmix-20091108-linux.tar.gz";
sha256 = "19gyn8pblffdz1bf3xkbpzx8a8wn3xb0v411pqzmz5g5l6pm5gph";
url = "http://static.jonof.id.au/dl/kenutils/kzipmix-${version}-linux.tar.gz";
sha256 = "sha256-ePgye0D6/ED53zx6xffLnYhkjed7SPU4BLOZQr9E3yA=";
};

installPhase = ''
mkdir -p $out/bin
cp kzip zipmix $out/bin
cp amd64/{kzip,zipmix} $out/bin

patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/kzip
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/zipmix
'';

meta = {
meta = with lib; {
description = "A tool that aggressively optimizes the sizes of Zip archives";
license = lib.licenses.unfree;
license = licenses.unfree;
homepage = "http://advsys.net/ken/utils.htm";
maintainers = [ lib.maintainers.sander ];
maintainers = [ maintainers.sander ];
};
}
4 changes: 2 additions & 2 deletions pkgs/tools/compression/lbzip2/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, gnulib, perl, autoconf, automake }:

stdenv.mkDerivation rec {
pname = "lbzip2";
version = "2.5";
name = "lbzip2-${version}";

src = fetchFromGitHub {
owner = "kjn";
repo = "lbzip2";
sha256 = "1h321wva6fp6khz6x0i6rqb76xh327nw6v5jhgjpcckwdarj5jv8";
rev = "v${version}";
sha256 = "1h321wva6fp6khz6x0i6rqb76xh327nw6v5jhgjpcckwdarj5jv8";
};

buildInputs = [ gnulib perl ];
Expand Down
19 changes: 11 additions & 8 deletions pkgs/tools/compression/lhasa/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{lib, stdenv, fetchurl}:
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
pname = "lhasa";
version = "0.3.1";

stdenv.mkDerivation {
name = "lhasa-0.3.1";
src = fetchurl {
url = "https://soulsphere.org/projects/lhasa/lhasa-0.3.1.tar.gz";
url = "https://soulsphere.org/projects/lhasa/lhasa-${version}.tar.gz";
sha256 = "092zi9av18ma20c6h9448k0bapvx2plnp292741dvfd9hmgqxc1z";
};
meta = {

meta = with lib; {
description = "Free Software replacement for the Unix LHA tool";
longDescription = ''
Lhasa is a Free Software replacement for the Unix LHA tool, for
decompressing .lzh (LHA / LHarc) and .lzs (LArc) archives. The backend for
the tool is a library, so that it can be reused for other purposes.
'';
license = lib.licenses.isc;
license = licenses.isc;
homepage = "http://fragglet.github.io/lhasa";
maintainers = with lib; [ maintainers.sander ];
platforms = with lib.platforms; linux ++ darwin;
maintainers = [ maintainers.sander ];
platforms = platforms.unix;
};
}
11 changes: 6 additions & 5 deletions pkgs/tools/compression/lrzip/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{lib, stdenv, fetchurl, zlib, lzo, bzip2, lz4, nasm, perl}:
{ lib, stdenv, fetchurl, zlib, lzo, bzip2, lz4, nasm, perl }:

stdenv.mkDerivation rec {
version = "0.641";
pname = "lrzip";
version = "0.641";

src = fetchurl {
url = "http://ck.kolivas.org/apps/lrzip/${pname}-${version}.tar.xz";
Expand All @@ -15,10 +15,11 @@ stdenv.mkDerivation rec {
"--disable-asm"
];

meta = {
meta = with lib; {
homepage = "http://ck.kolivas.org/apps/lrzip/";
description = "The CK LRZIP compression program (LZMA + RZIP)";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with maintainers; [ ];
license = licenses.gpl2Plus;
platforms = platforms.unix;
};
}
9 changes: 6 additions & 3 deletions pkgs/tools/compression/lzop/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{lib, stdenv, fetchurl, lzo}:
{ lib, stdenv, fetchurl, lzo }:

stdenv.mkDerivation rec {
name = "lzop-1.04";
pname = "lzop";
version = "1.04";

src = fetchurl {
url = "https://www.lzop.org/download/${name}.tar.gz";
url = "https://www.lzop.org/download/lzop-${version}.tar.gz";
sha256 = "0h9gb8q7y54m9mvy3jvsmxf21yx8fc3ylzh418hgbbv0i8mbcwky";
};

Expand All @@ -12,6 +14,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "http://www.lzop.org";
description = "Fast file compressor";
maintainers = with maintainers; [ ];
license = licenses.gpl2;
platforms = platforms.unix;
};
Expand Down
Loading