1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation {
4 pname = "dancing-script";
5 version = "2.0";
6
7 src = fetchFromGitHub {
8 owner = "impallari";
9 repo = "DancingScript";
10 rev = "f7f54bc1b8836601dae8696666bfacd306f77e34";
11 hash = "sha256-B9oAZFPH3dG/Nt5FfKfFVJYtfUKGK0AXNkQHRC7IgdU=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 description = "Dancing Script";
24 longDescription = "A lively casual script where the letters bounce and change size slightly.";
25 homepage = "https://github.com/impallari/DancingScript";
26 license = licenses.ofl;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ wdavidw ];
29 };
30}