2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoconf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tradcpp";
|
|
|
|
version = "0.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
|
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [ autoconf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = "autoconf";
|
|
|
|
patches = [
|
|
|
|
./tradcpp-configure.patch
|
|
|
|
./aarch64.patch
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A traditional (K&R-style) C macro preprocessor";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tradcpp";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|