2021-01-23 12:26:19 +00:00
|
|
|
{ fetchurl, lib, stdenv, python, ncurses, ocamlPackages, pkg-config }:
|
2009-12-12 00:47:14 +00:00
|
|
|
|
2015-01-08 10:16:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "coccinelle";
|
2021-05-29 14:28:47 +01:00
|
|
|
version = "1.1.0";
|
2009-12-12 00:47:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-29 14:28:47 +01:00
|
|
|
url = "https://coccinelle.gitlabpages.inria.fr/website/distrib/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0k0x4qnxzj8fymkp6y9irggcah070hj7hxq8l6ddj8ccpmjbhnsb";
|
2009-12-12 00:47:14 +00:00
|
|
|
};
|
|
|
|
|
2012-04-09 10:42:20 +01:00
|
|
|
buildInputs = with ocamlPackages; [
|
2017-03-03 21:27:23 +00:00
|
|
|
ocaml findlib menhir
|
2021-05-29 14:28:47 +01:00
|
|
|
ocaml_pcre parmap stdcompat
|
2021-01-19 06:50:56 +00:00
|
|
|
python ncurses pkg-config
|
2012-04-09 10:42:20 +01:00
|
|
|
];
|
2012-02-16 23:55:46 +00:00
|
|
|
|
2021-05-29 14:28:47 +01:00
|
|
|
doCheck = false;
|
2012-09-11 14:02:37 +01:00
|
|
|
|
2009-12-12 00:47:14 +00:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Program to apply semantic patches to C code";
|
2015-01-08 10:16:02 +00:00
|
|
|
longDescription = ''
|
|
|
|
Coccinelle is a program matching and transformation engine which
|
|
|
|
provides the language SmPL (Semantic Patch Language) for
|
|
|
|
specifying desired matches and transformations in C code.
|
|
|
|
Coccinelle was initially targeted towards performing collateral
|
|
|
|
evolutions in Linux. Such evolutions comprise the changes that
|
|
|
|
are needed in client code in response to evolutions in library
|
|
|
|
APIs, and may include modifications such as renaming a function,
|
|
|
|
adding a function argument whose value is somehow
|
|
|
|
context-dependent, and reorganizing a data structure. Beyond
|
|
|
|
collateral evolutions, Coccinelle is successfully used (by us
|
|
|
|
and others) for finding and fixing bugs in systems code.
|
|
|
|
'';
|
2009-12-12 00:47:14 +00:00
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://coccinelle.lip6.fr/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2009-12-12 00:47:14 +00:00
|
|
|
};
|
|
|
|
}
|