2024-07-25 12:36:03 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
llvmPackages,
|
|
|
|
}:
|
2017-03-11 03:28:05 -05:00
|
|
|
|
2024-07-14 00:07:15 -04:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 08:41:18 -04:00
|
|
|
pname = "bsc";
|
2024-07-14 00:07:15 -04:00
|
|
|
version = "3.3.4";
|
2017-03-11 03:28:05 -05:00
|
|
|
|
2021-07-21 07:36:12 -04:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IlyaGrebnov";
|
|
|
|
repo = "libbsc";
|
2024-07-14 00:07:15 -04:00
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2024-09-14 17:47:11 -04:00
|
|
|
hash = "sha256-reGg5xvoZBbNFFYPPyT2P1LA7oSCUIm9NIDjXyvkP9Q=";
|
2017-03-11 03:28:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-07-25 12:36:03 -04:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin llvmPackages.openmp;
|
2017-09-08 16:20:30 -04:00
|
|
|
|
2024-07-14 00:07:15 -04:00
|
|
|
makeFlags = [
|
|
|
|
"CC=$(CXX)"
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2017-03-11 03:28:05 -05:00
|
|
|
|
2021-01-11 02:54:33 -05:00
|
|
|
meta = with lib; {
|
2017-03-11 03:28:05 -05:00
|
|
|
description = "High performance block-sorting data compression library";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "http://libbsc.com/";
|
2024-07-14 00:04:11 -04:00
|
|
|
maintainers = with maintainers; [ sigmanificient ];
|
2024-07-14 00:07:15 -04:00
|
|
|
license = lib.licenses.asl20;
|
2017-03-11 03:28:05 -05:00
|
|
|
platforms = platforms.unix;
|
2023-11-22 21:51:17 -05:00
|
|
|
mainProgram = "bsc";
|
2017-03-11 03:28:05 -05:00
|
|
|
};
|
2024-07-14 00:07:15 -04:00
|
|
|
})
|