1{ stdenv, fetchurl } :
2
3stdenv.mkDerivation rec {
4 name = "bsc-${version}";
5 version = "3.1.0";
6
7 src = fetchurl {
8 url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
9 sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
10 };
11
12 enableParallelBuilding = true;
13
14 preInstall = ''
15 makeFlagsArray+=("PREFIX=$out")
16 '';
17
18 meta = with stdenv.lib; {
19 description = "High performance block-sorting data compression library";
20 homepage = http://libbsc.com/;
21 # Later commits changed the licence to Apache2 (no release yet, though)
22 license = with licenses; [ lgpl3Plus ];
23 platforms = platforms.unix;
24 };
25}