nixpkgs-suyu/pkgs/development/tools/tradcpp/default.nix

26 lines
631 B
Nix
Raw Normal View History

{ stdenv, fetchurl, autoconf }:
stdenv.mkDerivation {
name = "tradcpp-0.5.2";
src = fetchurl {
url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/tradcpp-0.5.2.tar.gz";
sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc";
};
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
buildInputs = [ autoconf ];
preConfigure = "autoconf";
2018-12-05 19:48:18 +01:00
patches = [
./tradcpp-configure.patch
./aarch64.patch
];
2018-11-08 20:56:45 +01:00
meta = with stdenv.lib; {
description = "A traditional (K&R-style) C macro preprocessor";
2018-11-08 20:56:45 +01:00
platforms = platforms.all;
license = licenses.bsd2;
};
}