Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
709 B
Nix
28 lines
709 B
Nix
{ lib, stdenv, fetchurl, autoconf }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tradcpp";
|
|
version = "0.5.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/${pname}-${version}.tar.gz";
|
|
sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
|
|
};
|
|
|
|
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; {
|
|
description = "Traditional (K&R-style) C macro preprocessor";
|
|
mainProgram = "tradcpp";
|
|
platforms = platforms.all;
|
|
license = licenses.bsd2;
|
|
};
|
|
|
|
}
|