From 9b5f36b2451b73b0f01b25edd8686f312de0ebee Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 24 Nov 2019 04:20:00 -0500 Subject: rhodium-libre: init at 1.2.0 --- pkgs/data/fonts/rhodium-libre/default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/data/fonts/rhodium-libre/default.nix (limited to 'pkgs/data/fonts') diff --git a/pkgs/data/fonts/rhodium-libre/default.nix b/pkgs/data/fonts/rhodium-libre/default.nix new file mode 100644 index 00000000000..fc89d652592 --- /dev/null +++ b/pkgs/data/fonts/rhodium-libre/default.nix @@ -0,0 +1,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 ]; + }; +} -- cgit 1.4.1