From 92964a2ea88c2a563f90588231a5b9e606940513 Mon Sep 17 00:00:00 2001 From: leenaars Date: Sat, 20 May 2017 18:23:55 +0200 Subject: [PATCH] srcml: init at 0.9.5 (#25395) --- .../version-management/srcml/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/version-management/srcml/default.nix diff --git a/pkgs/applications/version-management/srcml/default.nix b/pkgs/applications/version-management/srcml/default.nix new file mode 100644 index 000000000000..059c4fc344c2 --- /dev/null +++ b/pkgs/applications/version-management/srcml/default.nix @@ -0,0 +1,28 @@ +{ 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"; + homepage = "http://www.srcml.org"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ leenaars ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1496eed5d67..4595aab7e934 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4120,6 +4120,8 @@ with pkgs; squashfsTools = callPackage ../tools/filesystems/squashfs { }; + srcml = callPackage ../applications/version-management/srcml { }; + sshfs-fuse = callPackage ../tools/filesystems/sshfs-fuse { }; sshuttle = callPackage ../tools/security/sshuttle { };