Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 32 lines 843 B view raw
1{ fetchurl, stdenv, autogen }: 2 3stdenv.mkDerivation rec { 4 pname = "complexity"; 5 version = "1.10"; 6 7 src = fetchurl { 8 url = "mirror://gnu/complexity/${pname}-${version}.tar.gz"; 9 sha256 = "1vfns9xm7w0wrz12a3w15slrqnrfh6qxk15nv7qkj3irll3ff522"; 10 }; 11 12 buildInputs = [ autogen ]; 13 14 doCheck = true; 15 16 meta = { 17 description = "C code complexity measurement tool"; 18 19 longDescription = 20 '' GNU Complexity is a tool designed for analyzing the complexity of C 21 program functions. It is very similar to the McCabe scoring, but 22 addresses several issues not considered in that scoring scheme. 23 ''; 24 25 license = stdenv.lib.licenses.gpl3Plus; 26 27 homepage = "https://www.gnu.org/software/complexity/"; 28 29 platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; 30 maintainers = [ ]; 31 }; 32}