summary refs log tree commit diff
path: root/pkgs/data/fonts/rhodium-libre/default.nix
blob: fc89d65259222a2b5559495bb0e13cce38fa9922 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, fetchFromGitHub }:

let
  pname = "RhodiumLibre";
  version = "1.2.0";
in fetchFromGitHub {
  name = "${pname}-${version}";

  owner = "DunwichType";
  repo = pname;
  rev = version;

  postFetch = ''
    tar xf $downloadedFile --strip=1
    install -Dm444 -t $out/share/fonts/opentype/ RhodiumLibre-Regular.otf
    install -Dm444 -t $out/share/fonts/truetype/ RhodiumLibre-Regular.ttf
  '';

  sha256 = "04ax6bri5vsji465806p8d7zbdf12r5bpvcm9nb8isfqm81ggj0r";

  meta = with lib; {
    description = "F/OSS/Libre font for Latin and Devanagari";
    homepage = "https://github.com/DunwichType/RhodiumLibre";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ maintainers.marsam ];
  };
}