summary refs log tree commit diff
path: root/pkgs/tools/misc/figlet/default.nix
blob: 00265d1f31d4c0a475a092a278392c986dc97bc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl }:

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

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

  preConfigure = ''
    ensureDir $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";
  };
}