bsc: cleanup
This commit is contained in:
parent
0a97ad6827
commit
eaf2c4a2dd
|
@ -1,30 +1,31 @@
|
||||||
{ lib, stdenv, fetchurl, openmp ? null }:
|
{ lib, stdenv, fetchFromGitHub, openmp }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bsc";
|
pname = "bsc";
|
||||||
version = "3.1.0";
|
version = "3.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
|
owner = "IlyaGrebnov";
|
||||||
sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
|
repo = "libbsc";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0c0jmirh9y23kyi1jnrm13sa3xsjn54jazfr84ag45pai279fciz";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin openmp;
|
buildInputs = lib.optional stdenv.isDarwin openmp;
|
||||||
|
|
||||||
prePatch = ''
|
postPatch = ''
|
||||||
substituteInPlace makefile \
|
substituteInPlace makefile \
|
||||||
--replace 'g++' '$(CXX)'
|
--replace 'g++' '$(CXX)'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
makeFlagsArray+=("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; [ ];
|
||||||
# Later commits changed the licence to Apache2 (no release yet, though)
|
# Later commits changed the licence to Apache2 (no release yet, though)
|
||||||
license = with licenses; [ lgpl3Plus ];
|
license = with licenses; [ lgpl3Plus ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
|
Loading…
Reference in a new issue