2021-07-24 12:14:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openmp }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bsc";
|
|
|
|
version = "3.1.0";
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IlyaGrebnov";
|
|
|
|
repo = "libbsc";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0c0jmirh9y23kyi1jnrm13sa3xsjn54jazfr84ag45pai279fciz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin openmp;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace makefile \
|
|
|
|
--replace 'g++' '$(CXX)'
|
|
|
|
'';
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High performance block-sorting data compression library";
|
|
|
|
homepage = "http://libbsc.com/";
|
2021-07-24 12:14:16 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# Later commits changed the licence to Apache2 (no release yet, though)
|
|
|
|
license = with licenses; [ lgpl3Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|