2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchurl, cmake, libxml2, libxslt, boost, libarchive, python, antlr,
|
2017-09-05 04:30:42 +02:00
|
|
|
curl
|
|
|
|
}:
|
2017-05-20 18:23:55 +02:00
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
with lib;
|
2017-05-20 18:23:55 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.5_beta";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "srcml";
|
2017-05-20 18:23:55 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2017-09-05 04:30:42 +02:00
|
|
|
patches = [
|
|
|
|
./gcc6.patch
|
|
|
|
];
|
|
|
|
|
2017-05-20 18:23:55 +02:00
|
|
|
nativeBuildInputs = [ cmake antlr ];
|
2017-09-05 04:30:42 +02:00
|
|
|
buildInputs = [ libxml2 libxslt boost libarchive python curl ];
|
2017-05-20 18:23:55 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Infrastructure for exploration, analysis, and manipulation of source code";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.srcml.org";
|
2017-05-20 18:23:55 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|