nixpkgs/pkgs/by-name/bs/bsc/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
787 B
Nix
Raw Normal View History

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