lol

tradcpp: improved aarch64 support

+16 -1
+12
pkgs/development/tools/tradcpp/aarch64.patch
··· 1 + diff a/config.h b/config.h 2 + --- a/config.h 3 + +++ b/config.h 4 + @@ -124,6 +124,8 @@ 5 + #define CONFIG_CPU "__ppc64__" 6 + #elif defined(__ARM__) 7 + #define CONFIG_CPU "__ARM__" 8 + +#elif defined(__aarch64__) 9 + +#define CONFIG_CPU "__aarch64__" 10 + #else 11 + /* let it go */ 12 + #endif
+4 -1
pkgs/development/tools/tradcpp/default.nix
··· 11 11 # tradcpp only comes with BSD-make Makefile; the patch adds configure support 12 12 buildInputs = [ autoconf ]; 13 13 preConfigure = "autoconf"; 14 - patches = [ ./tradcpp-configure.patch ]; 14 + patches = [ 15 + ./tradcpp-configure.patch 16 + ./aarch64.patch 17 + ]; 15 18 16 19 meta = with stdenv.lib; { 17 20 description = "A traditional (K&R-style) C macro preprocessor";