tradcpp: 0.5.2 -> 0.5.3

This commit is contained in:
kyehn
2025-09-02 11:53:48 +08:00
parent 3b63f31ef1
commit 775d1c06c3
2 changed files with 9 additions and 23 deletions
-12
View File
@@ -1,12 +0,0 @@
diff a/config.h b/config.h
--- a/config.h
+++ b/config.h
@@ -124,6 +124,8 @@
#define CONFIG_CPU "__ppc64__"
#elif defined(__ARM__)
#define CONFIG_CPU "__ARM__"
+#elif defined(__aarch64__)
+#define CONFIG_CPU "__aarch64__"
#else
/* let it go */
#endif
+9 -11
View File
@@ -2,26 +2,24 @@
lib,
stdenv,
fetchurl,
autoconf,
autoreconfHook,
}:
stdenv.mkDerivation rec {
pname = "tradcpp";
version = "0.5.2";
version = "0.5.3";
src = fetchurl {
url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/${pname}-${version}.tar.gz";
sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/tradcpp-${version}.tar.gz";
hash = "sha256-4XufQs90s2DVaRvFn7U/N+QVgcRbdfzWS7ll5eL+TF4=";
};
strictDeps = true;
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
nativeBuildInputs = [ autoconf ];
preConfigure = "autoconf";
patches = [
./tradcpp-configure.patch
./aarch64.patch
];
patches = [ ./tradcpp-configure.patch ];
strictDeps = true;
nativeBuildInputs = [ autoreconfHook ];
meta = with lib; {
description = "Traditional (K&R-style) C macro preprocessor";