depot/third_party/nixpkgs/pkgs/development/tools/literate-programming/funnelweb/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
804 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "funnelweb-${meta.version}";
src = fetchurl {
url = "http://www.ross.net/funnelweb/download/funnelweb_v320/funnelweb_v320_source.tar.gz";
sha256 = "0zqhys0j9gabrd12mnk8ibblpc8dal4kbl8vnhxmdlplsdpwn4wg";
};
buildPhase = ''
cd source
${stdenv.cc}/bin/cc -D__linux__ -o fw *.c
'';
installPhase = ''
install -d $out/bin
install fw $out/bin/fw
'';
meta = with stdenv.lib; {
version = "3.20";
description = "A simple, reliable literate-programming macro preprocessor";
homepage = "http://www.ross.net/funnelweb/";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
};
}
#TODO: implement it for other platforms
#TODO: Documentation files