3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/cproto/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

35 lines
926 B
Nix

{ stdenv, fetchurl, flex, bison }:
stdenv.mkDerivation rec {
pname = "cproto";
version = "4.7o";
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"
];
sha256 = "0kxlrhhgm84v2q6n3wp7bb77g7wjxkb7azdvb6a70naf0rr0nsy7";
};
# patch made by Joe Khoobyar copied from gentoo bugs
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;
platforms = platforms.linux;
};
}