nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "jost";
5 version = "3.5";
6
7 src = fetchzip {
8 url = "https://github.com/indestructible-type/Jost/releases/download/${version}/Jost.zip";
9 hash = "sha256-ne81bMhmTzNZ/GGIzb7nCYh19vNLK+hJ3cP/zDxtiGM=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm644 fonts/otf/*.otf -t $out/share/fonts/opentype
16
17 runHook postInstall
18 '';
19
20 meta = with lib; {
21 homepage = "https://github.com/indestructible-type/Jost";
22 description = "A sans serif font by Indestructible Type";
23 license = licenses.ofl;
24 maintainers = [ maintainers.ar1a ];
25 };
26}