mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
bsc: 3.1.0 -> 3.3.4
This commit is contained in:
parent
8817329dec
commit
9781a9bc61
@ -1,34 +1,31 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, openmp }:
|
{ lib, stdenv, fetchFromGitHub, openmp }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "bsc";
|
pname = "bsc";
|
||||||
version = "3.1.0";
|
version = "3.3.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "IlyaGrebnov";
|
owner = "IlyaGrebnov";
|
||||||
repo = "libbsc";
|
repo = "libbsc";
|
||||||
rev = version;
|
rev = "refs/tags/v${finalAttrs.version}";
|
||||||
sha256 = "0c0jmirh9y23kyi1jnrm13sa3xsjn54jazfr84ag45pai279fciz";
|
sha256 = "sha256-reGg5xvoZBbNFFYPPyT2P1LA7oSCUIm9NIDjXyvkP9Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin openmp;
|
buildInputs = lib.optional stdenv.isDarwin openmp;
|
||||||
|
|
||||||
postPatch = ''
|
makeFlags = [
|
||||||
substituteInPlace makefile \
|
"CC=$(CXX)"
|
||||||
--replace 'g++' '$(CXX)'
|
"PREFIX=${placeholder "out"}"
|
||||||
'';
|
];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "High performance block-sorting data compression library";
|
description = "High performance block-sorting data compression library";
|
||||||
homepage = "http://libbsc.com/";
|
homepage = "http://libbsc.com/";
|
||||||
maintainers = with maintainers; [ sigmanificient ];
|
maintainers = with maintainers; [ sigmanificient ];
|
||||||
# Later commits changed the licence to Apache2 (no release yet, though)
|
license = lib.licenses.asl20;
|
||||||
license = with licenses; [ lgpl3Plus ];
|
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
mainProgram = "bsc";
|
mainProgram = "bsc";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user