-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
pkgs/tools/compression: cleanup of various packages #104849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8a6f832
504efb9
6f02900
763d3e8
cd3aa72
3f6f317
6310923
741d50a
132496e
7bc24e4
4d21eca
18bbf07
e42db80
27d4fb0
3fb92ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec { | |||||
| src = fetchFromGitHub { | ||||||
| owner = "google"; | ||||||
| repo = "brotli"; | ||||||
| rev = "v" + version; | ||||||
| rev = "v${version}"; | ||||||
| sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c="; | ||||||
| }; | ||||||
|
|
||||||
|
|
@@ -22,8 +22,7 @@ stdenv.mkDerivation rec { | |||||
| sha256 = "sOeXNVsCaBSD9i82GRUDrkyreGeQ7qaJWjjy/uLL0/0="; | ||||||
| }); | ||||||
|
|
||||||
| cmakeFlags = [] | ||||||
| ++ stdenv.lib.optional staticOnly "-DBUILD_SHARED_LIBS=OFF"; | ||||||
| cmakeFlags = stdenv.lib.optional staticOnly "-DBUILD_SHARED_LIBS=OFF"; | ||||||
|
|
||||||
| outputs = [ "out" "dev" "lib" ]; | ||||||
|
|
||||||
|
|
@@ -52,9 +51,7 @@ stdenv.mkDerivation rec { | |||||
|
|
||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| inherit (src.meta) homepage; | ||||||
|
|
||||||
| 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 | ||||||
|
|
@@ -67,7 +64,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; | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,26 +1,25 @@ | ||||||
| { stdenv, fetchurl, openmp ? null }: | ||||||
| { stdenv, fetchFromGitHub, openmp ? null }: | ||||||
|
|
||||||
| 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 = stdenv.lib.optional stdenv.isDarwin openmp; | ||||||
|
|
||||||
| prePatch = '' | ||||||
| substituteInPlace makefile \ | ||||||
| --replace 'g++' '$(CXX)' | ||||||
| substituteInPlace makefile --replace 'g++' '$(CXX)' | ||||||
| ''; | ||||||
|
|
||||||
| preInstall = '' | ||||||
| makeFlagsArray+=("PREFIX=$out") | ||||||
| ''; | ||||||
| makeFlags = [ "PREFIX=$(out)" ]; | ||||||
|
|
||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| description = "High performance block-sorting data compression library"; | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,12 +5,11 @@ 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"; | ||||||
| }; | ||||||
|
|
||||||
| buildInputs = [ bzip2 ]; | ||||||
| patches = [ ./include-systypes.patch ]; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When and why was this patch added and why is it not needed anymore? |
||||||
|
|
||||||
| buildPhase = '' | ||||||
| $CC -O3 -lbz2 bspatch.c -o bspatch | ||||||
|
|
@@ -20,18 +19,15 @@ stdenv.mkDerivation rec { | |||||
| installPhase = '' | ||||||
| mkdir -p $out/bin | ||||||
| mkdir -p $out/share/man/man1 | ||||||
|
|
||||||
| cp bsdiff $out/bin | ||||||
| cp bspatch $out/bin | ||||||
| cp bsdiff.1 $out/share/man/man1 | ||||||
| cp bspatch.1 $out/share/man/man1 | ||||||
| cp {bsdiff,bspatch} $out/bin | ||||||
| cp {bsdiff.1,bspatch.1} $out/share/man/man1 | ||||||
| ''; | ||||||
|
|
||||||
| meta = { | ||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| description = "An efficient binary diff/patch tool"; | ||||||
| homepage = "http://www.daemonology.net/bsdiff"; | ||||||
| license = stdenv.lib.licenses.bsd2; | ||||||
| platforms = stdenv.lib.platforms.unix; | ||||||
| maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; | ||||||
| homepage = "http://www.daemonology.net/bsdiff"; | ||||||
| license = licenses.bsd2; | ||||||
| platforms = platforms.unix; | ||||||
| maintainers = [ maintainers.thoughtpolice ]; | ||||||
| }; | ||||||
| } | ||||||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,28 +1,30 @@ | ||||||
| { 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 = '' | ||||||
| gcc -Wall -o dejsonlz4 src/dejsonlz4.c src/lz4.c | ||||||
| ''; | ||||||
| buildPhase = '' | ||||||
| gcc -Wall -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 stdenv.lib; { | ||||||
| description = "Decompress Mozilla Firefox bookmarks backup files"; | ||||||
| homepage = "https://github.com/avih/dejsonlz4"; | ||||||
| license = licenses.bsd2; | ||||||
| maintainers = with maintainers; [ mt-caret ]; | ||||||
| platforms = platforms.linux; | ||||||
| }; | ||||||
| } | ||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| description = "Decompress Mozilla Firefox bookmarks backup files"; | ||||||
| homepage = "https://github.com/avih/dejsonlz4"; | ||||||
| license = licenses.bsd2; | ||||||
| maintainers = with maintainers; [ mt-caret ]; | ||||||
| platforms = platforms.linux; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,10 +1,11 @@ | ||||||
| { 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"; | ||||||
| }; | ||||||
|
|
||||||
|
|
@@ -15,10 +16,10 @@ stdenv.mkDerivation rec { | |||||
| cp gzrecover $out/bin | ||||||
| ''; | ||||||
|
|
||||||
| meta = { | ||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| homepage = "https://www.urbanophile.com/arenn/hacking/gzrt/"; | ||||||
| description = "The gzip Recovery Toolkit"; | ||||||
| license = stdenv.lib.licenses.gpl2Plus; | ||||||
| platforms = stdenv.lib.platforms.unix; | ||||||
| license = licenses.gpl2Plus; | ||||||
| platforms = platforms.unix; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,25 +1,25 @@ | ||||||
| {stdenv, fetchurl}: | ||||||
| { stdenv, fetchurl, autoPatchelfHook }: | ||||||
|
|
||||||
| 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 = "https://www.jonof.id.au/files/kenutils/kzipmix-${version}-linux.tar.gz"; | ||||||
| sha256 = "086z8jzl56dk0hwgaj3vwy6n924xrgvwayiwvzwl1z7s81xk5y3q"; | ||||||
| }; | ||||||
|
|
||||||
| nativeBuildInputs = [ autoPatchelfHook ]; | ||||||
|
|
||||||
| installPhase = '' | ||||||
| mkdir -p $out/bin | ||||||
| cp 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 | ||||||
| cp amd64/{kzip,zipmix} $out/bin | ||||||
| ''; | ||||||
|
|
||||||
| meta = { | ||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| description = "A tool that aggressively optimizes the sizes of Zip archives"; | ||||||
| license = stdenv.lib.licenses.unfree; | ||||||
| homepage = "http://advsys.net/ken/utils.htm"; | ||||||
| maintainers = [ stdenv.lib.maintainers.sander ]; | ||||||
| homepage = "https://www.jonof.id.au/kenutils.html"; | ||||||
| license = licenses.unfree; | ||||||
| maintainers = [ maintainers.sander ]; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,21 +1,24 @@ | ||||||
| {stdenv, fetchurl}: | ||||||
| { 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 stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 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 = stdenv.lib.licenses.isc; | ||||||
| license = licenses.isc; | ||||||
| homepage = "http://fragglet.github.io/lhasa"; | ||||||
| maintainers = with stdenv.lib; [ maintainers.sander ]; | ||||||
| platforms = with stdenv.lib.platforms; linux ++ darwin; | ||||||
| maintainers = [ maintainers.sander ]; | ||||||
| platforms = platforms.unix; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| {stdenv, fetchurl, zlib, lzo, bzip2, nasm, perl}: | ||||||
| { stdenv, fetchurl, zlib, lzo, bzip2, nasm, perl }: | ||||||
|
|
||||||
| stdenv.mkDerivation rec { | ||||||
| version = "0.631"; | ||||||
|
|
@@ -9,13 +9,13 @@ stdenv.mkDerivation rec { | |||||
| sha256 = "0mb449vmmwpkalq732jdyginvql57nxyd31sszb108yps1lf448d"; | ||||||
| }; | ||||||
|
|
||||||
| buildInputs = [ zlib lzo bzip2 nasm perl ]; | ||||||
| nativeBuildInputs = [ nasm perl ]; | ||||||
| buildInputs = [ zlib lzo bzip2 ]; | ||||||
|
|
||||||
| meta = { | ||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| homepage = "http://ck.kolivas.org/apps/lrzip/"; | ||||||
| description = "The CK LRZIP compression program (LZMA + RZIP)"; | ||||||
| license = stdenv.lib.licenses.gpl2Plus; | ||||||
| inherit version; | ||||||
| platforms = stdenv.lib.platforms.unix; | ||||||
| license = licenses.gpl2Plus; | ||||||
| platforms = platforms.unix; | ||||||
| }; | ||||||
| } | ||||||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,31 +1,27 @@ | ||||||
| { stdenv, fetchurl, zlib, util-linux }: | ||||||
| { stdenv, fetchurl, zlib, utillinux }: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
|
|
||||||
| let name = "pigz"; | ||||||
| version = "2.4"; | ||||||
| in | ||||||
| stdenv.mkDerivation { | ||||||
| name = name + "-" + version; | ||||||
| stdenv.mkDerivation rec { | ||||||
| pname = "pigz"; | ||||||
| version = "2.4"; | ||||||
|
|
||||||
| src = fetchurl { | ||||||
| url = "https://www.zlib.net/${name}/${name}-${version}.tar.gz"; | ||||||
| url = "https://www.zlib.net/pigz/pigz-${version}.tar.gz"; | ||||||
| sha256 = "0wsgw5vwl23jrnpsvd8v3xcp5k4waw5mk0164fynjhkv58i1dy54"; | ||||||
| }; | ||||||
|
|
||||||
| enableParallelBuilding = true; | ||||||
|
|
||||||
| buildInputs = [zlib] ++ stdenv.lib.optional stdenv.isLinux util-linux; | ||||||
| buildInputs = [ zlib ] ++ stdenv.lib.optional stdenv.isLinux utillinux; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| makeFlags = [ "CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc" ]; | ||||||
|
|
||||||
| doCheck = stdenv.isLinux; | ||||||
| checkTarget = "tests"; | ||||||
| installPhase = | ||||||
| '' | ||||||
| install -Dm755 pigz "$out/bin/pigz" | ||||||
| ln -s pigz "$out/bin/unpigz" | ||||||
| install -Dm755 pigz.1 "$out/share/man/man1/pigz.1" | ||||||
| ln -s pigz.1 "$out/share/man/man1/unpigz.1" | ||||||
| install -Dm755 pigz.pdf "$out/share/doc/pigz/pigz.pdf" | ||||||
|
|
||||||
| installPhase = '' | ||||||
| install -Dm755 pigz "$out/bin/pigz" | ||||||
| install -Dm755 pigz.1 "$out/share/man/man1/pigz.1" | ||||||
| install -Dm755 pigz.pdf "$out/share/doc/pigz/pigz.pdf" | ||||||
| ''; | ||||||
|
|
||||||
| meta = with stdenv.lib; { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.