From 1971c350df4b425cb1b6f0d6f001935feab84ad8 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Mon, 5 Oct 2015 12:31:59 -0600 Subject: [PATCH 01/12] Package all of George Douros's fonts, not just Symbola --- pkgs/data/fonts/gdouros/default.nix | 57 +++++++++++++++++++++++++++++ pkgs/data/fonts/symbola/default.nix | 34 ----------------- pkgs/top-level/all-packages.nix | 3 +- 3 files changed, 59 insertions(+), 35 deletions(-) create mode 100644 pkgs/data/fonts/gdouros/default.nix delete mode 100644 pkgs/data/fonts/symbola/default.nix diff --git a/pkgs/data/fonts/gdouros/default.nix b/pkgs/data/fonts/gdouros/default.nix new file mode 100644 index 00000000000..562c74ee2c9 --- /dev/null +++ b/pkgs/data/fonts/gdouros/default.nix @@ -0,0 +1,57 @@ +{stdenv, fetchurl, unzip, lib }: +let + fonts = { + aegean = { version = "8.00"; file = "Aegean.zip"; sha256 = "09pmazcpxhkx3l8h4gxiixihi1c49pli5gvlcm1b6sbf4xvf9kwm"; + description = "Scripts and symbols of the Aegean world"; }; + textfonts = { version = "6.00"; file = "Textfonts.zip"; sha256 = "10m6kpyj8cc0b4qxxi78akiyjxcbhxj2wmbicdcfh008jibbaxsz"; + description = "Fonts based on early Greek editions"; }; + symbola = { version = "8.00"; file = "Symbola.zip"; sha256 = "1lfs2j816332ysvpb5ibj2gwpmyqyispqdl7skkshf2gra18hmhd"; + description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode"; }; + aegyptus = { version = "6.00"; file = "Aegyptus.zip"; sha256 = "092vci45wp9x0yky6dcfky4bs4avaxn6xpai3bs74gxskd2j9s3q"; + description = "Egyptian Hieroglyphs, Coptic, Meroitic"; }; + akkadian = { version = "7.13"; file = "Akkadian.zip"; sha256 = "1xwlify1jdsjfgbpl48gcdv7m2apa9avsyxy17q2zg6lngx1ic8a"; + description = "Sumero-Akkadian Cuneiform"; }; + anatolian = { version = "5.02"; file = "Anatolian.zip"; sha256 = "0arm58sijzk0bqmfb70k1sjvq79wgw16hx3j2g4l8qz4sv05bp8l"; + description = "Anatolian Hieroglyphs"; }; + maya = { version = "4.14"; file = "Maya.zip"; sha256 = "0l97racgncrhb96mfbsx8dr5n4j289iy0nnwhxf9b21ns58a9x4f"; + description = "Maya Hieroglyphs"; }; + unidings = { version = "8.00"; file = "Unidings.zip"; sha256 = "0r5n5jgxcf71x4zfizf1jk9jffyr6waxym8dlmh82bcpjpkx0pl0"; + description = "Glyphs and Icons for blocks of The Unicode Standard"; }; + musica = { version = "3.12"; file = "Musica.zip"; sha256 = "079vyb0mpxvlcf81d5pqh9dijkcvidfbcyvpbgjpmgzzrrj0q210"; + description = "Musical Notation"; }; + analecta = { version = "5.00"; file = "Analecta.zip"; sha256 = "0rphylnz42fqm1zpx5jx60k294kax3sid8r2hx3cbxfdf8fnpb1f"; + description = "Coptic, Gothic, Deseret"; }; + }; + mkpkg = name_: {version, file, sha256, description}: + stdenv.mkDerivation rec { + name = "${name_}-${version}"; + + src = fetchurl { + url = "http://users.teilar.gr/~g1951d/${file}"; + inherit sha256; + }; + + buildInputs = [ unzip ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -v *.ttf $out/share/fonts/truetype/ + + mkdir -p "$out/doc/${name}" + cp -v *.docx *.pdf *.xlsx "$out/doc/${name}/" + ''; + + meta = { + inherit description; + # In lieu of a license: + # Fonts in this site are offered free for any use; + # they may be installed, embedded, opened, edited, modified, regenerated, posted, packaged and redistributed. + license = stdenv.lib.licenses.free; + homepage = http://users.teilar.gr/~g1951d/; + }; + }; + +in +lib.mapAttrs mkpkg fonts diff --git a/pkgs/data/fonts/symbola/default.nix b/pkgs/data/fonts/symbola/default.nix deleted file mode 100644 index 253fd9cd3e9..00000000000 --- a/pkgs/data/fonts/symbola/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{stdenv, fetchurl, unzip }: - -stdenv.mkDerivation rec { - name = "symbola-8.00"; - - src = fetchurl { - url = "http://users.teilar.gr/~g1951d/Symbola.zip"; - sha256 = "1lfs2j816332ysvpb5ibj2gwpmyqyispqdl7skkshf2gra18hmhd"; - }; - - buildInputs = [ unzip ]; - - phases = [ "installPhase" ]; - - installPhase = '' - unzip ${src} - mkdir -p $out/share/fonts/truetype - cp -v Symbola.ttf $out/share/fonts/truetype/ - cp -v Symbola_hint.ttf $out/share/fonts/truetype/ - - mkdir -p "$out/doc/${name}" - cp -v Symbola.docx "$out/doc/${name}/" - cp -v Symbola.pdf "$out/doc/${name}/" - ''; - - meta = { - description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode"; - # In lieu of a license: - # Fonts in this site are offered free for any use; - # they may be installed, embedded, opened, edited, modified, regenerated, posted, packaged and redistributed. - license = stdenv.lib.licenses.free; - homepage = http://users.teilar.gr/~g1951d/; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ebcfb57952d..72af6608070 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10632,7 +10632,8 @@ let stix-otf = callPackage ../data/fonts/stix-otf { }; - symbola = callPackage ../data/fonts/symbola { }; + inherit (callPackages ../data/fonts/gdouros { }) + aegean textfonts symbola aegyptus akkadian anatolian maya unidings musica analecta; iana_etc = callPackage ../data/misc/iana-etc { }; From 9cc60e1c27d4f1d1c4411ee86d972c4b5f15ce78 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sat, 17 Oct 2015 14:54:39 -0600 Subject: [PATCH 02/12] hanazono: init at 20141012 --- pkgs/data/fonts/hanazono/default.nix | 36 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/data/fonts/hanazono/default.nix diff --git a/pkgs/data/fonts/hanazono/default.nix b/pkgs/data/fonts/hanazono/default.nix new file mode 100644 index 00000000000..01be8afd7aa --- /dev/null +++ b/pkgs/data/fonts/hanazono/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "hanazono-${version}"; + version = "20141012"; + + src = fetchurl { + url = "mirror://sourceforgejp/hanazono-font/62072/hanazono-20141012.zip"; + sha256 = "020jhqnzm9jvkmfvvyk1my26ncwxbnb9yc8v7am252jwrifji9q6"; + }; + + buildInputs = [ unzip ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/share/fonts/hanazono + cp *.ttf $out/share/fonts/hanazono + mkdir -p $out/share/doc/hanazono + cp *.txt $out/share/doc/hanazono + ''; + + meta = with stdenv.lib; { + description = "Free kanji font containing 96,327 characters"; + homepage = http://fonts.jp/hanazono/; + + # Dual-licensed under OFL and the following: + # This font is a free software. + # Unlimited permission is granted to use, copy, and distribute it, with + # or without modification, either commercially and noncommercially. + # THIS FONT IS PROVIDED "AS IS" WITHOUT WARRANTY. + license = [ licenses.ofl licenses.free ]; + maintainers = with maintainers; [ mathnerd314 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72af6608070..047abb16ecf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10548,6 +10548,8 @@ let hicolor_icon_theme = callPackage ../data/icons/hicolor-icon-theme { }; + hanazono = callPackage ../data/fonts/hanazono { }; + inconsolata = callPackage ../data/fonts/inconsolata {}; inconsolata-lgc = callPackage ../data/fonts/inconsolata/lgc.nix {}; From ce3214a4c9a8ee891458ba4c73df9346a3d93f45 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sat, 17 Oct 2015 23:05:26 -0600 Subject: [PATCH 03/12] unifont_upper: init at 8.0.01 --- pkgs/data/fonts/unifont_upper/default.nix | 29 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/data/fonts/unifont_upper/default.nix diff --git a/pkgs/data/fonts/unifont_upper/default.nix b/pkgs/data/fonts/unifont_upper/default.nix new file mode 100644 index 00000000000..7dff5f82a6e --- /dev/null +++ b/pkgs/data/fonts/unifont_upper/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "unifont_upper-${version}"; + version = "8.0.01"; + + ttf = fetchurl { + url = "http://unifoundry.com/pub/unifont-8.0.01/font-builds/${name}.ttf"; + sha256 = "0ffqm85bk345pnql1x0rbg0z31472y844xibb27njjg4avb21lga"; + }; + + phases = "installPhase"; + + installPhase = + '' + mkdir -p $out/share/fonts/truetype + cp -v ${ttf} $out/share/fonts/truetype/unifont_upper.ttf + ''; + + meta = with stdenv.lib; { + description = "Unicode font for glyphs above the Unicode Basic Multilingual Plane"; + homepage = http://unifoundry.com/unifont.html; + + # Basically GPL2+ with font exception. + license = http://unifoundry.com/LICENSE.txt; + maintainers = [ maintainers.mathnerd314 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 047abb16ecf..13c7a44bfa3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10691,6 +10691,8 @@ let unifont = callPackage ../data/fonts/unifont { }; + unifont_upper = callPackage ../data/fonts/unifont_upper { }; + vistafonts = callPackage ../data/fonts/vista-fonts { }; wqy_microhei = callPackage ../data/fonts/wqy-microhei { }; From 346dcabe337223128252b273a014cc97fda985e4 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 09:01:41 -0600 Subject: [PATCH 04/12] lohit-fonts: Update and split into individual font packages --- pkgs/data/fonts/lohit-fonts/default.nix | 76 ++++++++++++++++++------- pkgs/top-level/all-packages.nix | 6 +- 2 files changed, 61 insertions(+), 21 deletions(-) diff --git a/pkgs/data/fonts/lohit-fonts/default.nix b/pkgs/data/fonts/lohit-fonts/default.nix index 707d52c8baa..3642bf2eabc 100644 --- a/pkgs/data/fonts/lohit-fonts/default.nix +++ b/pkgs/data/fonts/lohit-fonts/default.nix @@ -1,22 +1,58 @@ -{ stdenv, fetchurl }: - -stdenv.mkDerivation { - name = "lohit-fonts-20140220"; - src = fetchurl { - url = https://fedorahosted.org/releases/l/o/lohit/lohit-ttf-20140220.tar.gz; - sha256 = "1rmgr445hw1n851ywy28csfvswz1i6hnc8mzp88qw2xk9j4dn32d"; +{ stdenv, fetchurl, lib }: +let + fonts = { + assamese = { version = "2.91.3" ; sha256 = "0kbdvi8f7vbvsain9zmnj9h43a6bmdkhk5c2wzg15100w7wf6lpq"; }; + bengali = { version = "2.91.3" ; sha256 = "1wdd2dkqaflf6nm5yc7llkfxin6g0zb2sbcd5g2xbrl0gwwcmkij"; }; + devanagari = { version = "2.95.2" ; sha256 = "1ss0j0pcfrg1vsypnm0042y4bn7b84mi6lbfsvr6rs89lb5swvn2"; }; + gujarati = { version = "2.92.2-and-4.2.2" ; sha256 = "1i27yjhn3x31a89x1hjs6rskdwp2kh0hibq1xiz3rgqil2m0jar6"; }; + gurmukhi = { version = "2.91.0" ; sha256 = "0z8a30mnyhlfvqhnggfk0369hqg779ihqyhcmpxj0sf9dmb1i0mj"; }; # renamed from Punjabi + kannada = { version = "2.5.3" ; sha256 = "1x9fb5z1bwmfi0y1fdnzizzjxhbxp272wxznx36063kjf25bb9pi"; }; + malayalam = { version = "2.92.0" ; sha256 = "1syv1irxh5xl0z0d5kwankhlmi7s2dg4wpp58nq0mkd3rhm5q8qw"; }; + marathi = { version = "2.94.0" ; sha256 = "0y9sca6gbfbafv52v0n2r1xfs8rg6zmqs4vp9sjfc1c6yqhzagl4"; }; + nepali = { version = "2.94.0" ; sha256 = "0c56141rpxc30581i3gisg8kfaadxhqjhgshni6g7a7rn6l4dx17"; }; + odia = { version = "2.91.0" ; sha256 = "15iz9kdf9k5m8wcn2iqlqjm758ac3hvnk93va6kac06frxnhw9lp"; }; # renamed from Oriya + tamil-classical = { version = "2.5.3" ; sha256 = "0ci4gk8qhhysjza69nncgmqmal8s4n8829icamvlzbmjdd4s2pij"; }; + tamil = { version = "2.91.1" ; sha256 = "1ir6kjl48apwk41xbpj0x458k108s7i61yzpkfhqcy1fkcr7cngj"; }; + telugu = { version = "2.5.4" ; sha256 = "06gdba7690y20l7nsi8fnnimim5hlq7hik0mpk2fzw4w39hjybk9"; }; }; - - installPhase = '' - mkdir -p $out/share/fonts/truetype - cp *.ttf $out/share/fonts/truetype - ''; - - meta = with stdenv.lib; { - homepage = https://fedorahosted.org/lohit/; - description = "Fonts for 21 Indian languages"; - license = licenses.ofl; - maintainers = [ maintainers.ttuegel ]; - platforms = platforms.all; + gplfonts = { + # GPL fonts removed from later releases + kashmiri = { version = "2.4.3" ; sha256 = "0ax8xzv4pz17jnsjdklawncsm2qn7176wbxykswygpzdd5lr0gg9"; }; + konkani = { version = "2.4.3" ; sha256 = "03zc27z26a60aaggrqx4d6l0jgggciq8p83v6vgg0k6l3apvcp45"; }; + maithili = { version = "2.4.3" ; sha256 = "0aqwnhq1namvvb77f2vssahixqf4xay7ja4q8qc312wxkajdqh4a"; }; + sindhi = { version = "2.4.3" ; sha256 = "00imfbn01yc2g5zdyydks9w3ndkawr66l9qk2idlvw3yz3sw2kf1"; }; }; -} + mkpkg = license: name: {version, sha256}: + stdenv.mkDerivation { + name = "lohit-${name}-${version}"; + + src = fetchurl { + url = "https://fedorahosted.org/releases/l/o/lohit/lohit-${name}-ttf-${version}.tar.gz"; + inherit sha256; + }; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -v *.ttf $out/share/fonts/truetype/ + + mkdir -p $out/etc/fonts/conf.d + cp -v *.conf $out/etc/fonts/conf.d + + mkdir -p "$out/share/doc/lohit-${name}" + cp -v ChangeLog* COPYRIGHT* "$out/share/doc/lohit-${name}/" + ''; + + meta = { + inherit license; + homepage = https://fedorahosted.org/lohit/; + maintainers = [ lib.maintainers.mathnerd314 lib.maintainers.ttuegel ]; + # Set a non-zero priority to allow easy overriding of the + # fontconfig configuration files. + priority = 5; + }; + }; + +in +# Technically, GPLv2 with usage exceptions +lib.mapAttrs (mkpkg lib.licenses.gpl2) gplfonts // +lib.mapAttrs (mkpkg lib.licenses.ofl) fonts diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13c7a44bfa3..aa575fdd6e5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10577,7 +10577,11 @@ let lobster-two = callPackage ../data/fonts/lobster-two {}; - lohit-fonts = callPackage ../data/fonts/lohit-fonts { }; + # lohit-fonts.assamese lohit-fonts.bengali lohit-fonts.devanagari lohit-fonts.gujarati lohit-fonts.gurmukhi + # lohit-fonts.kannada lohit-fonts.malayalam lohit-fonts.marathi lohit-fonts.nepali lohit-fonts.odia + # lohit-fonts.tamil-classical lohit-fonts.tamil lohit-fonts.telugu + # lohit-fonts.kashmiri lohit-fonts.konkani lohit-fonts.maithili lohit-fonts.sindhi + lohit-fonts = recurseIntoAttrs ( callPackages ../data/fonts/lohit-fonts { } ); manpages = callPackage ../data/documentation/man-pages { }; From 952f7fdb677445652e9ecfeed73c9700089b9789 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 10:48:15 -0600 Subject: [PATCH 05/12] oldsindhi: init at 0.1 --- pkgs/data/fonts/oldsindhi/default.nix | 30 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/data/fonts/oldsindhi/default.nix diff --git a/pkgs/data/fonts/oldsindhi/default.nix b/pkgs/data/fonts/oldsindhi/default.nix new file mode 100644 index 00000000000..411af37932a --- /dev/null +++ b/pkgs/data/fonts/oldsindhi/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, p7zip }: + +stdenv.mkDerivation rec { + name = "oldsindhi-${version}"; + version = "0.1"; + + src = fetchurl { + url = "https://github.com/MihailJP/oldsindhi/releases/download/0.1/OldSindhi-0.1.7z"; + sha256 = "1sbmxyxi81k88hkfw7gnnpgd5vy2vyj5y5428cd6nz4zlaclgq8z"; + }; + + buildInputs = [ p7zip ]; + + unpackCmd = "7z x $curSrc"; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + mkdir -p $out/share/doc/${name} + cp -v *.ttf $out/share/fonts/truetype/ + cp -v README *.txt $out/share/doc/${name} + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/MihailJP/oldsindhi; + description = "Free Sindhi Khudabadi font"; + maintainers = with maintainers; [ mathnerd314 ]; + license = licenses.bsd2; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aa575fdd6e5..31c75633994 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10608,6 +10608,8 @@ let oldstandard = callPackage ../data/fonts/oldstandard { }; + oldsindhi = callPackage ../data/fonts/oldsindhi { }; + open-dyslexic = callPackage ../data/fonts/open-dyslexic { }; opensans-ttf = callPackage ../data/fonts/opensans-ttf { }; From dcd2c88847cc5e9d136a47452f79a5a3d0ebf4e5 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 12:01:48 -0600 Subject: [PATCH 06/12] sampradaya: init at 2015-05-26 --- pkgs/data/fonts/sampradaya/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/data/fonts/sampradaya/default.nix diff --git a/pkgs/data/fonts/sampradaya/default.nix b/pkgs/data/fonts/sampradaya/default.nix new file mode 100644 index 00000000000..57639d8e6ab --- /dev/null +++ b/pkgs/data/fonts/sampradaya/default.nix @@ -0,0 +1,20 @@ +{ lib, runCommand, fetchurl }: + +runCommand "sampradaya-2015-05-26" { + src = fetchurl { + url = "https://bitbucket.org/OorNaattaan/sampradaya/raw/afa9f7c6ab17e14bd7dd74d0acaec2f75454dfda/Sampradaya.ttf"; + sha256 = "0110k1yh5kz3f04wp72bfz59pxjc7p6jv7m5p0rqn1kqbf7g3pck"; + }; + + meta = with lib; { + homepage = https://bitbucket.org/OorNaattaan/sampradaya/; + description = "Unicode-compliant Grantha font"; + maintainers = with maintainers; [ mathnerd314 ]; + license = licenses.ofl; # See font metadata + platforms = platforms.all; + }; +} +'' + mkdir -p $out/share/fonts/truetype + cp $src $out/share/fonts/truetype/Sampradaya.ttf +'' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 31c75633994..e66ae9e59b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10632,6 +10632,8 @@ let perl = perl516; # syntax error at troffprepro line 49, near "do subst(" }; + sampradaya = callPackage ../data/fonts/sampradaya { }; + shared_mime_info = callPackage ../data/misc/shared-mime-info { }; shared_desktop_ontologies = callPackage ../data/misc/shared-desktop-ontologies { }; From f15c5a66e70c2823ff2038da397b83818d27f7c4 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 13:06:04 -0600 Subject: [PATCH 07/12] marathi-cursive: init at 1.2 --- pkgs/data/fonts/marathi-cursive/default.nix | 30 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/data/fonts/marathi-cursive/default.nix diff --git a/pkgs/data/fonts/marathi-cursive/default.nix b/pkgs/data/fonts/marathi-cursive/default.nix new file mode 100644 index 00000000000..e3f47cb8b0d --- /dev/null +++ b/pkgs/data/fonts/marathi-cursive/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, p7zip }: + +stdenv.mkDerivation rec { + name = "marathi-cursive-${version}"; + version = "1.2"; + + src = fetchurl { + url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; + sha256 = "0zhqkkfkz5mhfz8xv305s16h80p9v1iva829fznxd2c44ngyplmc"; + }; + + buildInputs = [ p7zip ]; + + unpackCmd = "7z x $curSrc"; + + installPhase = '' + mkdir -p $out/share/fonts/marathi-cursive + cp -v *.otf *.ttf $out/share/fonts/marathi-cursive + mkdir -p $out/share/doc/${name} + cp -v README *.txt $out/share/doc/${name} + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/MihailJP/marathi-cursive; + description = "Modi script font with Graphite and OpenType support"; + maintainers = with maintainers; [ mathnerd314 ]; + license = licenses.mit; # It's the M+ license, M+ is MIT(-ish) + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e66ae9e59b0..8af7fdd5a20 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10583,6 +10583,8 @@ let # lohit-fonts.kashmiri lohit-fonts.konkani lohit-fonts.maithili lohit-fonts.sindhi lohit-fonts = recurseIntoAttrs ( callPackages ../data/fonts/lohit-fonts { } ); + marathi-cursive = callPackage ../data/fonts/marathi-cursive { }; + manpages = callPackage ../data/documentation/man-pages { }; meslo-lg = callPackage ../data/fonts/meslo-lg {}; From 1219fcf89ca7081f36070a103212f57c08124771 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 13:35:09 -0600 Subject: [PATCH 08/12] tai-ahom: init at 2015-07-06 --- pkgs/data/fonts/tai-languages/default.nix | 25 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/data/fonts/tai-languages/default.nix diff --git a/pkgs/data/fonts/tai-languages/default.nix b/pkgs/data/fonts/tai-languages/default.nix new file mode 100644 index 00000000000..0b9a63f2cb3 --- /dev/null +++ b/pkgs/data/fonts/tai-languages/default.nix @@ -0,0 +1,25 @@ +{ lib, runCommand, fetchurl }: + +{ +tai-ahom = runCommand "tai-ahom-2015-07-06" { + src = fetchurl { + url = "https://github.com/enabling-languages/tai-languages/blob/b57a3ea4589af69bb8e87c6c4bb7cd367b52f0b7/ahom/.fonts/ttf/.original/AhomUnicode_FromMartin.ttf?raw=true"; + sha256 = "0zpjsylm29qc3jdv5kv0689pcirai46j7xjp5dppi0fmzxaxqnsk"; + }; + + meta = with lib; { + homepage = https://github.com/enabling-languages/tai-languages; + description = "Unicode-compliant Tai Ahom font"; + maintainers = with maintainers; [ mathnerd314 ]; + license = licenses.ofl; # See font metadata + platforms = platforms.all; + }; +} +'' + mkdir -p $out/share/fonts/truetype + cp $src $out/share/fonts/truetype/AhomUnicode.ttf +''; + +# TODO: package others (Khamti Shan, Tai Aiton, Tai Phake, and/or Assam Tai) + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8af7fdd5a20..328cf3adf00 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10677,6 +10677,8 @@ let source-han-sans-simplified-chinese = sourceHanSansPackages.simplified-chinese; source-han-sans-traditional-chinese = sourceHanSansPackages.traditional-chinese; + inherit (callPackages ../data/fonts/tai-languages { }) tai-ahom; + tango-icon-theme = callPackage ../data/icons/tango-icon-theme { }; themes = name: callPackage (../data/misc/themes + ("/" + name + ".nix")) {}; From a3d693f22bb97da541edd1865365b0cf500745cd Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 14:09:15 -0600 Subject: [PATCH 09/12] mro-unicode: init at 2013-05-25 --- pkgs/data/fonts/mro-unicode/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/data/fonts/mro-unicode/default.nix diff --git a/pkgs/data/fonts/mro-unicode/default.nix b/pkgs/data/fonts/mro-unicode/default.nix new file mode 100644 index 00000000000..493a26e5556 --- /dev/null +++ b/pkgs/data/fonts/mro-unicode/default.nix @@ -0,0 +1,20 @@ +{ lib, runCommand, fetchurl }: + +runCommand "mro-unicode-2013-05-25" { + src = fetchurl { + url = "https://github.com/phjamr/MroUnicode/raw/master/MroUnicode-Regular.ttf"; + sha256 = "1za74ych0sh97ks6qp9iqq9jankgnkrq65s350wsbianwi72di45"; + }; + + meta = with lib; { + homepage = https://github.com/phjamr/MroUnicode; + description = "Unicode-compliant Mro font"; + maintainers = with maintainers; [ mathnerd314 ]; + license = licenses.ofl; + platforms = platforms.all; + }; +} +'' + mkdir -p $out/share/fonts/truetype + cp $src $out/share/fonts/truetype/MroUnicode-Regular.ttf +'' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 328cf3adf00..f7d194682c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10599,6 +10599,8 @@ let mplus-outline-fonts = callPackage ../data/fonts/mplus-outline-fonts { }; + mro-unicode = callPackage ../data/fonts/mro-unicode { }; + nafees = callPackage ../data/fonts/nafees { }; inherit (callPackages ../data/fonts/noto-fonts {}) From 1d24547aac177cd95f03254f94ca51f4c4b312c8 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 15:21:39 -0600 Subject: [PATCH 10/12] signwriting: init at 1.1.4 --- pkgs/data/fonts/signwriting/default.nix | 28 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/data/fonts/signwriting/default.nix diff --git a/pkgs/data/fonts/signwriting/default.nix b/pkgs/data/fonts/signwriting/default.nix new file mode 100644 index 00000000000..147f4edc519 --- /dev/null +++ b/pkgs/data/fonts/signwriting/default.nix @@ -0,0 +1,28 @@ +{ lib, runCommand, fetchurl }: + +runCommand "signwriting-1.1.4" { + src1 = fetchurl { + url = "https://github.com/Slevinski/signwriting_2010_fonts/raw/61c8e7123a1168657b5d34d85266a637f67b9d2b/fonts/SignWriting%202010.ttf"; + name = "SignWriting_2010.ttf"; + sha256 = "1abjzykbjx2hal8mrxp51rvblv3q84akyn9qhjfaj20rwphkf5zj"; + }; + + src2 = fetchurl { + url = "https://github.com/Slevinski/signwriting_2010_fonts/raw/61c8e7123a1168657b5d34d85266a637f67b9d2b/fonts/SignWriting%202010%20Filling.ttf"; + name = "SignWriting_2010_Filling.ttf"; + sha256 = "0am5wbf7jdy9szxkbsc5f3959cxvbj7mr0hy1ziqmkz02c6xjw2m"; + }; + + meta = with lib; { + homepage = https://github.com/Slevinski/signwriting_2010_fonts; + description = "Typeface for written sign languages"; + maintainers = with maintainers; [ mathnerd314 ]; + license = licenses.ofl; + platforms = platforms.all; + }; +} +'' + mkdir -p $out/share/fonts/truetype + cp $src1 $out/share/fonts/truetype/SignWriting_2010.ttf + cp $src2 $out/share/fonts/truetype/SignWriting_2010_Filling.ttf +'' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f7d194682c0..64591429fe0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10642,6 +10642,8 @@ let shared_desktop_ontologies = callPackage ../data/misc/shared-desktop-ontologies { }; + signwriting = callPackage ../data/fonts/signwriting { }; + stdmanpages = callPackage ../data/documentation/std-man-pages { }; stix-otf = callPackage ../data/fonts/stix-otf { }; From 33a32e47e87d80e13fd1ce979c33412f19d2b13a Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 20:41:20 -0600 Subject: [PATCH 11/12] akkadian: fix hash --- pkgs/data/fonts/gdouros/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/data/fonts/gdouros/default.nix b/pkgs/data/fonts/gdouros/default.nix index 562c74ee2c9..b297a020aae 100644 --- a/pkgs/data/fonts/gdouros/default.nix +++ b/pkgs/data/fonts/gdouros/default.nix @@ -9,7 +9,7 @@ let description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode"; }; aegyptus = { version = "6.00"; file = "Aegyptus.zip"; sha256 = "092vci45wp9x0yky6dcfky4bs4avaxn6xpai3bs74gxskd2j9s3q"; description = "Egyptian Hieroglyphs, Coptic, Meroitic"; }; - akkadian = { version = "7.13"; file = "Akkadian.zip"; sha256 = "1xwlify1jdsjfgbpl48gcdv7m2apa9avsyxy17q2zg6lngx1ic8a"; + akkadian = { version = "7.13"; file = "Akkadian.zip"; sha256 = "1jd2fb6jnwpdwgkidsi2pnw0nk2cpya8k85299w591sqslfkxyij"; description = "Sumero-Akkadian Cuneiform"; }; anatolian = { version = "5.02"; file = "Anatolian.zip"; sha256 = "0arm58sijzk0bqmfb70k1sjvq79wgw16hx3j2g4l8qz4sv05bp8l"; description = "Anatolian Hieroglyphs"; }; From e0240a4b56e53eeda7b90bbbf052bd5f37a555b3 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 20:47:37 -0600 Subject: [PATCH 12/12] unidings: fix hash --- pkgs/data/fonts/gdouros/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/data/fonts/gdouros/default.nix b/pkgs/data/fonts/gdouros/default.nix index b297a020aae..8ad6068a185 100644 --- a/pkgs/data/fonts/gdouros/default.nix +++ b/pkgs/data/fonts/gdouros/default.nix @@ -15,7 +15,7 @@ let description = "Anatolian Hieroglyphs"; }; maya = { version = "4.14"; file = "Maya.zip"; sha256 = "0l97racgncrhb96mfbsx8dr5n4j289iy0nnwhxf9b21ns58a9x4f"; description = "Maya Hieroglyphs"; }; - unidings = { version = "8.00"; file = "Unidings.zip"; sha256 = "0r5n5jgxcf71x4zfizf1jk9jffyr6waxym8dlmh82bcpjpkx0pl0"; + unidings = { version = "8.00"; file = "Unidings.zip"; sha256 = "1i0z3mhgj4680188lqpmk7rx3yiz4l7yybb4wq6zk35j75l28irm"; description = "Glyphs and Icons for blocks of The Unicode Standard"; }; musica = { version = "3.12"; file = "Musica.zip"; sha256 = "079vyb0mpxvlcf81d5pqh9dijkcvidfbcyvpbgjpmgzzrrj0q210"; description = "Musical Notation"; };