Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
992 B
Nix
45 lines
992 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
llvmPackages,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bsc";
|
|
version = "3.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "IlyaGrebnov";
|
|
repo = "libbsc";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-iUFKTDSAg2/57TPvR0nlmfVN2Z6O9kZKIg+BQQKvr/o=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin llvmPackages.openmp;
|
|
|
|
postPatch = lib.optional (!stdenv.hostPlatform.isx86) ''
|
|
substituteInPlace makefile \
|
|
--replace-fail "-mavx2" ""
|
|
|
|
substituteInPlace makefile.cuda \
|
|
--replace-fail "-mavx2" ""
|
|
'';
|
|
|
|
makeFlags = [
|
|
"CC=$(CXX)"
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
meta = {
|
|
description = "High performance block-sorting data compression library";
|
|
homepage = "http://libbsc.com/";
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "bsc";
|
|
};
|
|
})
|