From 8ac134321b5c525bf33d6136528fa13b8d5f2707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 11 Mar 2017 09:28:05 +0100 Subject: [PATCH] bsc: init at 3.1.0 Compressor. --- pkgs/tools/compression/bsc/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/compression/bsc/default.nix diff --git a/pkgs/tools/compression/bsc/default.nix b/pkgs/tools/compression/bsc/default.nix new file mode 100644 index 000000000000..be512e2ae689 --- /dev/null +++ b/pkgs/tools/compression/bsc/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl } : + +stdenv.mkDerivation rec { + name = "bsc-${version}"; + version = "3.1.0"; + + src = fetchurl { + url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz"; + sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6"; + }; + + enableParallelBuilding = true; + + preInstall = '' + makeFlagsArray+=("PREFIX=$out") + ''; + + meta = with stdenv.lib; { + description = "High performance block-sorting data compression library"; + homepage = http://libbsc.com/; + # Later commits changed the licence to Apache2 (no release yet, though) + license = with licenses; [ lgpl3Plus ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f93e2922cacf..793daf719529 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1100,6 +1100,8 @@ with pkgs; atool = callPackage ../tools/archivers/atool { }; + bsc = callPackage ../tools/compression/bsc { }; + bzip2 = callPackage ../tools/compression/bzip2 { }; cabextract = callPackage ../tools/archivers/cabextract { };