2015-10-17 21:02:37 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "funnelweb-${meta.version}";
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://www.ross.net/funnelweb/download/funnelweb_v320/funnelweb_v320_source.tar.gz";
|
2015-10-17 21:02:37 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.ross.net/funnelweb/";
|
2015-10-17 21:02:37 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#TODO: implement it for other platforms
|
|
|
|
#TODO: Documentation files
|