about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/literate-programming/funnelweb/default.nix
blob: 94fbaa698b74d05fcfeff563654bb3963fc1be9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "funnelweb";
  version = "3.20";

  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 lib; {
    version = "3.20";
    description = "A simple, reliable literate-programming macro preprocessor";
    mainProgram = "fw";
    homepage = "http://www.ross.net/funnelweb/";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.AndersonTorres ];
  };
}
#TODO: implement it for other platforms
#TODO: Documentation files