···11+{ fetchurl, stdenv, flex }:
22+33+stdenv.mkDerivation rec {
44+ name = "splint-3.1.2";
55+66+ src = fetchurl {
77+ url = "http://www.splint.org/downloads/${name}.src.tgz";
88+ sha256 = "02pv8kscsrkrzip9r08pfs9xs98q74c52mlxzbii6cv6vx1vd3f7";
99+ };
1010+1111+ patches = [ ./tmpdir.patch ];
1212+1313+ buildInputs = [ flex ];
1414+1515+ doCheck = true;
1616+1717+ meta = {
1818+ homepage = http://splint.org/;
1919+ description = "Splint, an annotation-assisted lightweight static analyzer for C";
2020+2121+ longDescription = ''
2222+ Splint is a tool for statically checking C programs for security
2323+ vulnerabilities and coding mistakes. With minimal effort, Splint
2424+ can be used as a better lint. If additional effort is invested
2525+ adding annotations to programs, Splint can perform stronger
2626+ checking than can be done by any standard lint.
2727+ '';
2828+2929+ license = "GPLv2+";
3030+ };
3131+}