nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "overpass";
9 version = "3.0.5";
10
11 src = fetchzip {
12 url = "https://github.com/RedHatOfficial/Overpass/releases/download/v${version}/overpass-${version}.zip";
13 hash = "sha256-8AWT0/DELfNWXtZOejC90DbUSOtyGt9tSkcSuO7HP2o=";
14 };
15
16 installPhase = ''
17 runHook preInstall
18
19 install -Dm644 */*/*.otf -t $out/share/fonts/opentype
20 install -Dm644 */*/*.ttf -t $out/share/fonts/truetype
21 install -Dm644 *.md -t $out/share/doc/${pname}-${version}
22
23 runHook postInstall
24 '';
25
26 meta = with lib; {
27 homepage = "https://overpassfont.org/";
28 description = "Font heavily inspired by Highway Gothic";
29 license = licenses.ofl;
30 platforms = platforms.all;
31 maintainers = [ maintainers.rycee ];
32 };
33}