nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation {
4 pname = "inconsolata";
5 version = "unstable-2021-01-19";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "fonts";
10 rev = "f113126dc4b9b1473d9354a86129c9d7b837aa1a";
11 sha256 = "0safw5prpa63mqcyfw3gr3a535w4c9hg5ayw5pkppiwil7n3pyxs";
12 };
13
14 installPhase = ''
15 install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/*.ttf
16 '';
17
18 meta = with lib; {
19 homepage = "https://www.levien.com/type/myfonts/inconsolata.html";
20 description = "A monospace font for both screen and print";
21 maintainers = with maintainers; [ mikoim raskin ];
22 license = licenses.ofl;
23 platforms = platforms.all;
24 };
25}