summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-06-22 16:15:23 +0200
committerGitHub <noreply@github.com>2021-06-22 16:15:23 +0200
commit88e3da0610eff7f70e514a832a24e768c0e344bf (patch)
tree44059ab7030f6fea1b0b3b4e69e3aabd4e356b0b /pkgs/data/fonts
parent04656c62ba0fb3d54c264e7d49d6afb44feba6cd (diff)
parent80565f5b5ed0523116233a09a6cef401cc008167 (diff)
downloadnixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.tar
nixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.tar.gz
nixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.tar.bz2
nixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.tar.lz
nixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.tar.xz
nixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.tar.zst
nixpkgs-88e3da0610eff7f70e514a832a24e768c0e344bf.zip
Merge pull request #126657 from fortuneteller2k/open-fonts
open-fonts: init at 0.7.0
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/open-fonts/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/fonts/open-fonts/default.nix b/pkgs/data/fonts/open-fonts/default.nix
new file mode 100644
index 00000000000..e503b114303
--- /dev/null
+++ b/pkgs/data/fonts/open-fonts/default.nix
@@ -0,0 +1,28 @@
+{ lib, fetchurl }:
+
+let
+  pname = "open-fonts";
+  version = "0.7.0";
+in
+fetchurl {
+  name = "${pname}-${version}";
+
+  url = "https://github.com/kiwi0fruit/open-fonts/releases/download/${version}/open-fonts.tar.xz";
+  downloadToTemp = true;
+  recursiveHash = true;
+  sha256 = "sha256-bSP9Flotoo3E5vRU3eKOUAPD2fmkWseWYWG4y0S07+4=";
+
+  postFetch = ''
+    tar xf $downloadedFile
+    mkdir -p $out/share/fonts/truetype
+    install open-fonts/*.ttf $out/share/fonts/truetype
+  '';
+
+  meta = with lib; {
+    description = "A collection of beautiful free and open source fonts";
+    homepage = "https://github.com/kiwi0fruit/open-fonts";
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ fortuneteller2k ];
+  };
+}