cproto: 4.6 -> 4.7o

The package seems rather abandoned (here in nixpkgs).
The bump fixes some problems, but it's probably still not suitable
for my use cases, though let me push the improvements anyway.
This commit is contained in:
Vladimír Čunát 2019-01-02 16:26:06 +01:00
parent 18a3815a8e
commit cea9a2c9df
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,22 +1,34 @@
{ stdenv, fetchurl, flex, bison }: { stdenv, fetchurl, flex, bison }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "cproto-4.6"; name = "cproto-${version}";
version = "4.7o";
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/cproto/cproto-4.6.tar.gz; urls = [
sha256 = "0ilhkx9iwc5bh65q47mf68p39iyk07d52fv00z431nl6qcb9hp9j"; "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"
];
sha256 = "0kxlrhhgm84v2q6n3wp7bb77g7wjxkb7azdvb6a70naf0rr0nsy7";
}; };
buildInputs = [flex bison];
# patch made by Joe Khoobyar copied from gentoo bugs # patch made by Joe Khoobyar copied from gentoo bugs
patches = ./cproto_patch; patches = ./cproto_patch;
meta = { nativeBuildInputs = [ flex bison ];
doCheck = true;
doInstallCheck = true;
installCheckPhase = ''
[ "$("$out/bin/cproto" -V 2>&1)" = '${version}' ]
'';
meta = with stdenv.lib; {
description = "Tool to generate C function prototypes from C source code"; description = "Tool to generate C function prototypes from C source code";
homepage = http://cproto.sourceforge.net/; homepage = https://invisible-island.net/cproto/;
license = stdenv.lib.licenses.publicDomain; license = licenses.publicDomain;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
}; };
} }