nixpkgs/pkgs/by-name/bs/bsc/package.nix
2024-07-25 18:40:24 +02:00

37 lines
789 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bsc";
version = "3.3.4";
src = fetchFromGitHub {
owner = "IlyaGrebnov";
repo = "libbsc";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "sha256-reGg5xvoZBbNFFYPPyT2P1LA7oSCUIm9NIDjXyvkP9Q=";
};
enableParallelBuilding = true;
buildInputs = lib.optional stdenv.isDarwin llvmPackages.openmp;
makeFlags = [
"CC=$(CXX)"
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "High performance block-sorting data compression library";
homepage = "http://libbsc.com/";
maintainers = with maintainers; [ sigmanificient ];
license = lib.licenses.asl20;
platforms = platforms.unix;
mainProgram = "bsc";
};
})