at 18.03-beta 34 lines 848 B view raw
1{ stdenv, fetchurl, cmake, libxml2, libxslt, boost, libarchive, python, antlr, 2 curl 3}: 4 5with stdenv.lib; 6 7stdenv.mkDerivation rec { 8 version = "0.9.5_beta"; 9 name = "srcml-${version}"; 10 11 src = fetchurl { 12 url = "http://www.sdml.cs.kent.edu/lmcrs/srcML-${version}-src.tar.gz"; 13 sha256 = "13pswdi75qjsw7z75lz7l3yjsvb58drihla2mwj0f9wfahaj3pam"; 14 }; 15 16 prePatch = '' 17 patchShebangs . 18 substituteInPlace CMake/install.cmake --replace /usr/local $out 19 ''; 20 21 patches = [ 22 ./gcc6.patch 23 ]; 24 25 nativeBuildInputs = [ cmake antlr ]; 26 buildInputs = [ libxml2 libxslt boost libarchive python curl ]; 27 28 meta = { 29 description = "Infrastructure for exploration, analysis, and manipulation of source code"; 30 homepage = http://www.srcml.org; 31 license = licenses.gpl2Plus; 32 maintainers = with maintainers; [ leenaars ]; 33 }; 34}