nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3let
4 majorVersion = "1";
5 minorVersion = "101";
6in
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "f1_8";
9 version = "${majorVersion}.${minorVersion}";
10
11 src = fetchzip {
12 url = "https://note.com/api/v2/attachments/download/d83b2c4ec63d7826acaa76725d261ff4";
13 hash = "sha256-pe1G8WeFAo+KYjjsNwn0JmtXFn9QugE1SeGwaqnl1F0=";
14 stripRoot = false;
15 extension = "zip";
16 };
17
18 installPhase = ''
19 runHook preInstall
20
21 install -D -m444 -t $out/share/fonts/opentype $src/*.otf
22
23 runHook postInstall
24 '';
25
26 meta = with lib; {
27 homepage = "http://dotcolon.net/font/${finalAttrs.pname}/";
28 description = "A weighted decorative font";
29 platforms = platforms.all;
30 maintainers = with maintainers; [ minijackson ];
31 license = licenses.ofl;
32 };
33})