mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
figlet: package with contributed fonts
Ship the fonts listed at http://www.figlet.org/examples.html
This commit is contained in:
parent
0c76e36189
commit
454100e881
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, fetchpatch }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "figlet";
|
||||
@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0za1ax15x7myjl8jz271ybly8ln9kb9zhm1gf6rdlxzhs07w925z";
|
||||
};
|
||||
|
||||
contributed = fetchzip {
|
||||
url = "ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz";
|
||||
hash = "sha256-AyvAoc3IqJeKWgJftBahxb/KJjudeJIY4KD6mElNagQ=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://git.alpinelinux.org/aports/plain/main/figlet/musl-fix-cplusplus-decls.patch?h=3.4-stable&id=71776c73a6f04b6f671430f702bcd40b29d48399";
|
||||
@ -20,12 +25,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ];
|
||||
|
||||
postInstall = "cp -ar ${contributed}/* $out/share/figlet/";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Program for making large letters out of ordinary text";
|
||||
homepage = "http://www.figlet.org/";
|
||||
license = lib.licenses.afl21;
|
||||
maintainers = with lib.maintainers; [ ehmry ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user