tradcpp: 0.5.2 -> 0.5.3 (#439414)

This commit is contained in:
Peder Bergebakken Sundt
2025-09-11 16:52:44 +00:00
committed by GitHub
2 changed files with 14 additions and 29 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
+14 -17
View File
@@ -2,32 +2,29 @@
lib,
stdenv,
fetchurl,
autoconf,
autoreconfHook,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
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-${finalAttrs.version}.tar.gz";
hash = "sha256-4XufQs90s2DVaRvFn7U/N+QVgcRbdfzWS7ll5eL+TF4=";
};
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
patches = [ ./tradcpp-configure.patch ];
strictDeps = true;
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
nativeBuildInputs = [ autoconf ];
preConfigure = "autoconf";
patches = [
./tradcpp-configure.patch
./aarch64.patch
];
meta = with lib; {
nativeBuildInputs = [ autoreconfHook ];
meta = {
description = "Traditional (K&R-style) C macro preprocessor";
mainProgram = "tradcpp";
platforms = platforms.all;
license = licenses.bsd2;
platforms = lib.platforms.all;
license = lib.licenses.bsd2;
};
}
})