Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 32 lines 809 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "funnelweb"; 5 version = "3.20"; 6 7 src = fetchurl { 8 url = "http://www.ross.net/funnelweb/download/funnelweb_v320/funnelweb_v320_source.tar.gz"; 9 sha256 = "0zqhys0j9gabrd12mnk8ibblpc8dal4kbl8vnhxmdlplsdpwn4wg"; 10 }; 11 12 buildPhase = '' 13 cd source 14 ${stdenv.cc}/bin/cc -D__linux__ -o fw *.c 15 ''; 16 17 installPhase = '' 18 install -d $out/bin 19 install fw $out/bin/fw 20 ''; 21 22 meta = with lib; { 23 version = "3.20"; 24 description = "A simple, reliable literate-programming macro preprocessor"; 25 homepage = "http://www.ross.net/funnelweb/"; 26 license = licenses.gpl2; 27 platforms = platforms.linux; 28 maintainers = [ maintainers.AndersonTorres ]; 29 }; 30} 31#TODO: implement it for other platforms 32#TODO: Documentation files