nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "dosis";
5 version = "1.007";
6
7 src = fetchFromGitHub {
8 owner = "impallari";
9 repo = "Dosis";
10 rev = "12df1e13e58768f20e0d48ff15651b703f9dd9dc";
11 hash = "sha256-rZ49uNBlI+NWkiZykpyXzOonXlbVB6Vf6a/8A56Plj4=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 find . -name '*.otf' -exec install -m444 -Dt $out/share/fonts/opentype {} \;
18 install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
19
20 runHook postInstall
21 '';
22
23 meta = with lib; {
24 description = "A very simple, rounded, sans serif family";
25 longDescription = ''
26 Dosis is a very simple, rounded, sans serif family.
27
28 The lighter weights are minimalist. The bolder weights have more
29 personality. The medium weight is nice and balanced. The overall result is
30 a family that's clean and modern, and can express a wide range of
31 voices & feelings.
32
33 It comes in 7 incremental weights: ExtraLight, Light, Book, Medium,
34 Semibold, Bold & ExtraBold
35 '';
36 homepage = "http://www.impallari.com/dosis";
37 license = licenses.ofl;
38 maintainers = with maintainers; [ cmfwyp ];
39 platforms = platforms.all;
40 };
41}