mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
33 lines
828 B
Nix
33 lines
828 B
Nix
{ stdenv, fetchurl, openmp ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "bsc-${version}";
|
|
version = "3.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
|
|
sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin openmp;
|
|
|
|
prePatch = ''
|
|
substituteInPlace makefile \
|
|
--replace 'g++' '$(CXX)'
|
|
'';
|
|
|
|
preInstall = ''
|
|
makeFlagsArray+=("PREFIX=$out")
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "High performance block-sorting data compression library";
|
|
homepage = http://libbsc.com/;
|
|
# Later commits changed the licence to Apache2 (no release yet, though)
|
|
license = with licenses; [ lgpl3Plus ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|