nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 32 lines 818 B view raw
1{ stdenv, fetchurl, openmp ? null }: 2 3stdenv.mkDerivation rec { 4 pname = "bsc"; 5 version = "3.1.0"; 6 7 src = fetchurl { 8 url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz"; 9 sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6"; 10 }; 11 12 enableParallelBuilding = true; 13 14 buildInputs = stdenv.lib.optional stdenv.isDarwin openmp; 15 16 prePatch = '' 17 substituteInPlace makefile \ 18 --replace 'g++' '$(CXX)' 19 ''; 20 21 preInstall = '' 22 makeFlagsArray+=("PREFIX=$out") 23 ''; 24 25 meta = with stdenv.lib; { 26 description = "High performance block-sorting data compression library"; 27 homepage = http://libbsc.com/; 28 # Later commits changed the licence to Apache2 (no release yet, though) 29 license = with licenses; [ lgpl3Plus ]; 30 platforms = platforms.unix; 31 }; 32}