mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
37 lines
787 B
Nix
37 lines
787 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}";
|
|
hash = "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";
|
|
};
|
|
})
|