about summary refs log tree commit diff
path: root/pkgs/tools/misc/figlet/default.nix
blob: 488f8020b6393e506ad40036e56abed06eb0d118 (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
{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "figlet-2.2.4";

  # some tools can be found here ftp://ftp.figlet.org/pub/figlet/util/
  src = fetchurl {
    url = ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.4.tar.gz;
    sha256 = "19qcmm9cmf78w1z7gbpyj9wmrfjzjl25sax9f2j37sijznrh263f";
  };

  installPhase = "make prefix=$out install";

  preConfigure = ''
    mkdir -p $out/{man/man6,bin}
    makeFlags="DESTDIR=$out/bin MANDIR=$out/man/man6 DEFAULTFONTDIR=$out/share/figlet"
  '';

  meta = { 
    description = "Program for making large letters out of ordinary text";
    homepage = http://www.figlet.org/;
    license = "AFL-2.1";
  };
}