nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 39 lines 1.3 kB view raw
1{ lib, stdenv, fetchurl, fetchpatch, fetchzip }: 2 3stdenv.mkDerivation rec { 4 pname = "figlet"; 5 version = "2.2.5"; 6 7 # some tools can be found here ftp://ftp.figlet.org/pub/figlet/util/ 8 src = fetchurl { 9 url = "ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${version}.tar.gz"; 10 sha256 = "0za1ax15x7myjl8jz271ybly8ln9kb9zhm1gf6rdlxzhs07w925z"; 11 }; 12 13 contributed = fetchzip { 14 url = "ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz"; 15 hash = "sha256-AyvAoc3IqJeKWgJftBahxb/KJjudeJIY4KD6mElNagQ="; 16 }; 17 18 patches = [ 19 (fetchpatch { 20 url = "https://git.alpinelinux.org/aports/plain/main/figlet/musl-fix-cplusplus-decls.patch?h=3.4-stable&id=71776c73a6f04b6f671430f702bcd40b29d48399"; 21 name = "musl-fix-cplusplus-decls.patch"; 22 sha256 = "1720zgrfk9makznqkbjrnlxm7nnhk6zx7g458fv53337n3g3zn7j"; 23 }) 24 ]; 25 26 makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ]; 27 28 postInstall = "cp -ar ${contributed}/* $out/share/figlet/"; 29 30 doCheck = true; 31 32 meta = { 33 description = "Program for making large letters out of ordinary text"; 34 homepage = "http://www.figlet.org/"; 35 license = lib.licenses.afl21; 36 maintainers = with lib.maintainers; [ ehmry ]; 37 platforms = lib.platforms.unix; 38 }; 39}