8 stdenv.mkDerivation (finalAttrs: {
12 src = fetchFromGitHub {
13 owner = "IlyaGrebnov";
15 rev = "refs/tags/v${finalAttrs.version}";
16 hash = "sha256-reGg5xvoZBbNFFYPPyT2P1LA7oSCUIm9NIDjXyvkP9Q=";
19 enableParallelBuilding = true;
21 buildInputs = lib.optional stdenv.hostPlatform.isDarwin llvmPackages.openmp;
23 postPatch = lib.optional (!stdenv.hostPlatform.isx86) ''
24 substituteInPlace makefile \
25 --replace-fail "-mavx2" ""
27 substituteInPlace makefile.cuda \
28 --replace-fail "-mavx2" ""
33 "PREFIX=${placeholder "out"}"
37 description = "High performance block-sorting data compression library";
38 homepage = "http://libbsc.com/";
39 maintainers = with lib.maintainers; [ sigmanificient ];
40 license = lib.licenses.asl20;
41 platforms = lib.platforms.unix;