1 { lib, stdenv, fetchurl, autoconf }:
3 stdenv.mkDerivation rec {
8 url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/${pname}-${version}.tar.gz";
9 sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
13 # tradcpp only comes with BSD-make Makefile; the patch adds configure support
14 nativeBuildInputs = [ autoconf ];
15 preConfigure = "autoconf";
17 ./tradcpp-configure.patch
22 description = "Traditional (K&R-style) C macro preprocessor";
23 mainProgram = "tradcpp";
24 platforms = platforms.all;
25 license = licenses.bsd2;