2017-05-20 17:23:55 +01:00
|
|
|
{ stdenv, fetchurl, cmake, libxml2, libxslt, boost, libarchive, python, antlr }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.5_beta";
|
|
|
|
name = "srcml-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.sdml.cs.kent.edu/lmcrs/srcML-${version}-src.tar.gz";
|
|
|
|
sha256 = "13pswdi75qjsw7z75lz7l3yjsvb58drihla2mwj0f9wfahaj3pam";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
substituteInPlace CMake/install.cmake --replace /usr/local $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake antlr ];
|
|
|
|
buildInputs = [ libxml2 libxslt boost libarchive python ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Infrastructure for exploration, analysis, and manipulation of source code";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.srcml.org;
|
2017-05-20 17:23:55 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|