lol
1{ stdenv, fetchurl, fetchpatch }:
2
3stdenv.mkDerivation {
4 name = "figlet-2.2.5";
5
6 # some tools can be found here ftp://ftp.figlet.org/pub/figlet/util/
7 src = fetchurl {
8 url = ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz;
9 sha256 = "0za1ax15x7myjl8jz271ybly8ln9kb9zhm1gf6rdlxzhs07w925z";
10 };
11
12 patches = [
13 (fetchpatch {
14 url = https://git.alpinelinux.org/cgit/aports/plain/main/figlet/musl-fix-cplusplus-decls.patch?h=3.4-stable&id=71776c73a6f04b6f671430f702bcd40b29d48399;
15 name = "musl-fix-cplusplus-decls.patch";
16 sha256 = "1720zgrfk9makznqkbjrnlxm7nnhk6zx7g458fv53337n3g3zn7j";
17 })
18 ];
19
20 makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ];
21
22 doCheck = true;
23
24 meta = {
25 description = "Program for making large letters out of ordinary text";
26 homepage = http://www.figlet.org/;
27 license = stdenv.lib.licenses.afl21;
28 platforms = stdenv.lib.platforms.unix;
29 };
30}