diff options
author | Bob van der Linden <bobvanderlinden@gmail.com> | 2015-06-06 17:18:04 +0200 |
---|---|---|
committer | Bob van der Linden <bobvanderlinden@gmail.com> | 2015-06-06 23:59:51 +0200 |
commit | a818dba90bcaaa86176d485703e7e653204d8393 (patch) | |
tree | a5e8e240baf8ebd71338bde7f3a88ca69113e0b4 /pkgs/tools/compression/zopfli | |
parent | 11a9774c75d4a000b3a987d5176f5da833e39403 (diff) |
added zopfli package
Diffstat (limited to 'pkgs/tools/compression/zopfli')
-rw-r--r-- | pkgs/tools/compression/zopfli/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/compression/zopfli/default.nix b/pkgs/tools/compression/zopfli/default.nix new file mode 100644 index 000000000000..93da9b15a9e5 --- /dev/null +++ b/pkgs/tools/compression/zopfli/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "zopfli-${version}"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "zopfli"; + rev = name; + name = "${name}-src"; + sha256 = "0r2k3md24y5laslzsph7kh4synm5az4ppv64idrvjk5yh2qwwb62"; + }; + + installPhase = '' + install -D zopfli $out/bin/zopfli + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/google/zopfli; + description = "A compression tool to perform very good, but slow, deflate or zlib compression"; + longDescription = + ''Zopfli Compression Algorithm is a compression library programmed + in C to perform very good, but slow, deflate or zlib compression. + + This library can only compress, not decompress. Existing zlib or + deflate libraries can decompress the data. + ''; + platforms = stdenv.lib.platforms.linux; + license = stdenv.lib.licenses.asl20; + maintainers = with maintainers; [ roconnor bobvanderlinden ]; + }; +} |