diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2017-02-27 22:36:27 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2017-02-27 22:42:40 +0100 |
commit | 9e7ce9010c572fcaa41daf2ed821a01cf4f7335a (patch) | |
tree | ffa589343c492302a9766f492712fe45f9f8be36 | |
parent | 7992ce65fc46e7153480ac4211c7f65ae3ba6b37 (diff) | |
download | nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.tar nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.tar.gz nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.tar.bz2 nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.tar.lz nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.tar.xz nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.tar.zst nixlib-9e7ce9010c572fcaa41daf2ed821a01cf4f7335a.zip |
lzbench: init at 20170208
In-memory benchmark of several up-to-date compressors. Signed-off-by: Lluís Batlle i Rossell <viric@viric.name>
-rw-r--r-- | pkgs/tools/compression/lzbench/default.nix | 28 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/compression/lzbench/default.nix b/pkgs/tools/compression/lzbench/default.nix new file mode 100644 index 000000000000..a38e0a67b282 --- /dev/null +++ b/pkgs/tools/compression/lzbench/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, glibc }: + +stdenv.mkDerivation rec { + name = "lzbench-20170208"; + + src = fetchFromGitHub { + owner = "inikep"; + repo = "lzbench"; + rev = "d5e9b58"; + sha256 = "16xj5fldwl639f0ys5rx54csbfvf35ja34bdl5m068hdn6dr47r5"; + }; + + enableParallelBuilding = true; + + buildInputs = stdenv.lib.optionals stdenv.isLinux [ stdenv.glibc.static ]; + + installPhase = '' + mkdir -p $out/bin + cp lzbench $out/bin + ''; + + meta = with stdenv.lib; { + inherit (src.meta) homepage; + description = "In-memory benchmark of open-source LZ77/LZSS/LZMA compressors"; + license = licenses.free; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b477a9df8320..caf54ebf9e2c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2769,6 +2769,8 @@ with pkgs; lz4 = callPackage ../tools/compression/lz4 { }; + lzbench = callPackage ../tools/compression/lzbench { }; + lzop = callPackage ../tools/compression/lzop { }; macchanger = callPackage ../os-specific/linux/macchanger { }; |