2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, openmp ? null }:
|
2017-03-11 09:28:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bsc";
|
2017-03-11 09:28:05 +01:00
|
|
|
version = "3.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
|
|
|
|
sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin openmp;
|
2017-09-08 22:20:30 +02:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace makefile \
|
|
|
|
--replace 'g++' '$(CXX)'
|
|
|
|
'';
|
|
|
|
|
2017-03-11 09:28:05 +01:00
|
|
|
preInstall = ''
|
|
|
|
makeFlagsArray+=("PREFIX=$out")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-03-11 09:28:05 +01:00
|
|
|
description = "High performance block-sorting data compression library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://libbsc.com/";
|
2017-03-11 09:28:05 +01:00
|
|
|
# Later commits changed the licence to Apache2 (no release yet, though)
|
|
|
|
license = with licenses; [ lgpl3Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|