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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
655 B
Nix
Raw Normal View History

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