2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, flex, bison }:
|
|
|
|
|
2019-01-02 16:26:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cproto";
|
2020-07-20 22:28:15 +02:00
|
|
|
version = "4.7p";
|
2008-04-27 20:20:57 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2019-01-02 16:26:06 +01:00
|
|
|
urls = [
|
|
|
|
"mirror://debian/pool/main/c/cproto/cproto_${version}.orig.tar.gz"
|
|
|
|
# No version listings and apparently no versioned tarball over http(s).
|
|
|
|
"ftp://ftp.invisible-island.net/cproto/cproto-${version}.tgz"
|
|
|
|
];
|
2020-07-20 22:28:15 +02:00
|
|
|
sha256 = "0vm1784yw8gax1r7bzgq0chjgfzwxvmkala2awghmd3zyi7k60nj";
|
2008-04-27 20:20:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# patch made by Joe Khoobyar copied from gentoo bugs
|
2020-08-05 11:53:41 +02:00
|
|
|
patches = [ ./cproto.patch ];
|
2008-04-27 20:20:57 +02:00
|
|
|
|
2019-01-02 16:26:06 +01:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
[ "$("$out/bin/cproto" -V 2>&1)" = '${version}' ]
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Tool to generate C function prototypes from C source code";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://invisible-island.net/cproto/";
|
2019-01-02 16:26:06 +01:00
|
|
|
license = licenses.publicDomain;
|
2020-07-21 01:43:19 +02:00
|
|
|
platforms = platforms.all;
|
2008-04-27 20:20:57 +02:00
|
|
|
};
|
|
|
|
}
|