Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 33 lines 825 B view raw
1{ lib, stdenv, fetchFromGitHub, openmp }: 2 3stdenv.mkDerivation rec { 4 pname = "bsc"; 5 version = "3.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "IlyaGrebnov"; 9 repo = "libbsc"; 10 rev = version; 11 sha256 = "0c0jmirh9y23kyi1jnrm13sa3xsjn54jazfr84ag45pai279fciz"; 12 }; 13 14 enableParallelBuilding = true; 15 16 buildInputs = lib.optional stdenv.isDarwin openmp; 17 18 postPatch = '' 19 substituteInPlace makefile \ 20 --replace 'g++' '$(CXX)' 21 ''; 22 23 makeFlags = [ "PREFIX=$(out)" ]; 24 25 meta = with lib; { 26 description = "High performance block-sorting data compression library"; 27 homepage = "http://libbsc.com/"; 28 maintainers = with maintainers; [ ]; 29 # Later commits changed the licence to Apache2 (no release yet, though) 30 license = with licenses; [ lgpl3Plus ]; 31 platforms = platforms.unix; 32 }; 33}