nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchFromGitHub, stdenvNoCC }:
2
3stdenvNoCC.mkDerivation (finalAttrs: {
4 pname = "sniglet";
5 version = "2011-05-25";
6
7 src = fetchFromGitHub {
8 owner = "theleagueof";
9 repo = finalAttrs.pname;
10 rev = "5c6b0860bdd0d8c4f16222e4de3918c384db17c4";
11 hash = "sha256-fLT2hZT9o1Ka30EB/6oWwmalhVJ+swXLRFG99yRWd2c=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
18 install -D -m444 -t $out/share/fonts/opentype $src/*.otf
19
20 runHook postInstall
21 '';
22
23 meta = {
24 description = "A fun rounded display face that’s great for headlines";
25 longDescription = ''
26 A rounded display face that’s great for headlines. It comes with a full
27 character set, so you can type in Icelandic or even French!
28 '';
29 homepage = "https://www.theleagueofmoveabletype.com/sniglet";
30 license = lib.licenses.ofl;
31 maintainers = with lib.maintainers; [ minijackson ];
32 };
33})