depot/third_party/nixpkgs/pkgs/development/tools/tradcpp/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

27 lines
682 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 = "A traditional (K&R-style) C macro preprocessor";
platforms = platforms.all;
license = licenses.bsd2;
};
}