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