2017-09-08 21:20:30 +01:00
|
|
|
{ stdenv, fetchurl, openmp ? null }:
|
2017-03-11 08:28:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bsc";
|
2017-03-11 08:28:05 +00:00
|
|
|
version = "3.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
|
|
|
|
sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-08 21:20:30 +01:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin openmp;
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace makefile \
|
|
|
|
--replace 'g++' '$(CXX)'
|
|
|
|
'';
|
|
|
|
|
2017-03-11 08:28:05 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|