2024-05-02 00:46:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoconf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tradcpp";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-13 21:24:10 +00:00
|
|
|
url =
|
|
|
|
"https://ftp.netbsd.org/pub/NetBSD/misc/dholland/${pname}-${version}.tar.gz";
|
2024-05-02 00:46:19 +00:00
|
|
|
sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
|
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
|
|
|
|
nativeBuildInputs = [ autoconf ];
|
|
|
|
preConfigure = "autoconf";
|
2024-05-13 21:24:10 +00:00
|
|
|
patches = [ ./tradcpp-configure.patch ./aarch64.patch ];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A traditional (K&R-style) C macro preprocessor";
|
|
|
|
mainProgram = "tradcpp";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|