3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/cproto/default.nix

35 lines
930 B
Nix
Raw Normal View History

{ stdenv, fetchurl, flex, bison }:
stdenv.mkDerivation rec {
pname = "cproto";
2020-10-24 20:44:42 +01:00
version = "4.7q";
src = fetchurl {
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-10-24 20:44:42 +01:00
sha256 = "138n5j6lkanbbdcs63irzxny4nfgp0zk66z621xjbnybf920svpk";
};
# patch made by Joe Khoobyar copied from gentoo bugs
2020-08-05 10:53:41 +01:00
patches = [ ./cproto.patch ];
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";
homepage = "https://invisible-island.net/cproto/";
license = licenses.publicDomain;
2020-07-21 00:43:19 +01:00
platforms = platforms.all;
};
}