bsc: 3.1.0 -> 3.3.4

This commit is contained in:
Sigmanificient 2024-07-14 06:07:15 +02:00
parent 8817329dec
commit 9781a9bc61

View File

@ -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";
}; };
} })