2015-02-04 11:30:13 +01:00
|
|
|
{ stdenv, fetchurl, autoconf }:
|
2015-01-07 13:17:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-03-10 00:02:50 +01:00
|
|
|
name = "tradcpp-0.5.2";
|
2015-01-07 13:17:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-10 00:02:50 +01:00
|
|
|
url = http://ftp.netbsd.org/pub/NetBSD/misc/dholland/tradcpp-0.5.2.tar.gz;
|
|
|
|
sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
|
2015-01-07 13:17:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
|
2015-02-04 11:30:13 +01:00
|
|
|
buildInputs = [ autoconf ];
|
|
|
|
preConfigure = "autoconf";
|
2015-01-07 13:17:22 +01:00
|
|
|
patches = [ ./tradcpp-configure.patch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A traditional (K&R-style) C macro preprocessor";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|