2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, autoconf }:
|
2015-01-07 13:17:22 +01:00
|
|
|
|
2021-06-20 16:15:21 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tradcpp";
|
|
|
|
version = "0.5.2";
|
2015-01-07 13:17:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 16:15:21 +02:00
|
|
|
url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/${pname}-${version}.tar.gz";
|
2018-03-10 00:02:50 +01:00
|
|
|
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";
|
2018-12-05 19:48:18 +01:00
|
|
|
patches = [
|
|
|
|
./tradcpp-configure.patch
|
|
|
|
./aarch64.patch
|
|
|
|
];
|
2015-01-07 13:17:22 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-01-07 13:17:22 +01:00
|
|
|
description = "A traditional (K&R-style) C macro preprocessor";
|
2018-11-08 20:56:45 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
2015-01-07 13:17:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|