Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 25 lines 631 B view raw
1{ stdenv, fetchurl, autoconf }: 2 3stdenv.mkDerivation { 4 name = "tradcpp-0.5.2"; 5 6 src = fetchurl { 7 url = "https://ftp.netbsd.org/pub/NetBSD/misc/dholland/tradcpp-0.5.2.tar.gz"; 8 sha256 = "1h2bwxwc13rz3g2236l89hm47f72hn3m4h7wjir3j532kq0m68bc"; 9 }; 10 11 # tradcpp only comes with BSD-make Makefile; the patch adds configure support 12 buildInputs = [ autoconf ]; 13 preConfigure = "autoconf"; 14 patches = [ 15 ./tradcpp-configure.patch 16 ./aarch64.patch 17 ]; 18 19 meta = with stdenv.lib; { 20 description = "A traditional (K&R-style) C macro preprocessor"; 21 platforms = platforms.all; 22 license = licenses.bsd2; 23 }; 24 25}