btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / os / oswald / package.nix
blob13008e7b337bb62db79764c6f9c2112f2da1feac
1 { lib, stdenvNoCC, fetchFromGitHub }:
3 stdenvNoCC.mkDerivation {
4   pname = "oswald";
5   version = "4.103";
7   src = fetchFromGitHub {
8     owner = "googlefonts";
9     repo = "OswaldFont";
10     rev = "89795261ac9eeb9aa8cd99f43982c4e4b0e53261";
11     hash = "sha256-yoUduWHuuKDQaJnQ+CgeMw1vp2lgn/OVPokSDzEU7yk=";
12   };
14   installPhase = ''
15     runHook preInstall
17     install -Dm444 fonts/ttf/*.ttf -t $out/share/fonts/truetype
18     install -Dm444 fonts/variable/*.ttf -t $out/share/fonts/variable
20     runHook postInstall
21   '';
23   meta = {
24     description = "Reworking of the classic gothic typeface style";
25     longDescription = ''
26       Oswald is a reworking of the classic gothic typeface style
27       historically represented by designs such as 'Alternate Gothic'.
28       The characters of Oswald have been re-drawn and reformed to
29       better fit the pixel grid of standard digital screens.
30     '';
31     homepage = "https://github.com/googlefonts/OswaldFont";
32     license = lib.licenses.ofl;
33     platforms = lib.platforms.all;
34     maintainers = with lib.maintainers; [ mimvoid ];
35   };