From 44c342441482a5b195c799db923a97969789bd4a Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 17 Jan 2015 00:46:38 +0100 Subject: [PATCH] Add package for the 'open-dyslexic' font. --- pkgs/data/fonts/open-dyslexic/default.nix | 30 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/data/fonts/open-dyslexic/default.nix diff --git a/pkgs/data/fonts/open-dyslexic/default.nix b/pkgs/data/fonts/open-dyslexic/default.nix new file mode 100644 index 000000000000..5d9bb5843607 --- /dev/null +++ b/pkgs/data/fonts/open-dyslexic/default.nix @@ -0,0 +1,30 @@ +{stdenv, fetchgit}: + +stdenv.mkDerivation rec { + name = "open-dyslexic-${version}"; + version = "2014-11-11"; + + src = fetchgit { + url = "https://github.com/antijingoist/open-dyslexic.git"; + rev = "f4b5ba89018b44d633608907e15f93fb3fabbabc"; + sha256 = "04pa7c2cary6pqxsmxqrg7wi19szg7xh8panmvqvmc7jas0mzg6q"; + }; + + phases = ["unpackPhase" "installPhase"]; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + cp -v 'otf/'*.otf $out/share/fonts/opentype + + mkdir -p $out/share/doc/open-dyslexic + cp -v README.md $out/share/doc/open-dyslexic + ''; + + meta = with stdenv.lib; { + homepage = http://opendyslexic.org/; + description = "Font created to increase readability for readers with dyslexia"; + license = "Bitstream Vera License (http://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts)"; + platforms = platforms.all; + maintainers = [maintainers.rycee]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0faa19160515..1b2bbe6456bc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9145,6 +9145,8 @@ let oldstandard = callPackage ../data/fonts/oldstandard { }; + open-dyslexic = callPackage ../data/fonts/open-dyslexic { }; + opensans-ttf = callPackage ../data/fonts/opensans-ttf { }; poly = callPackage ../data/fonts/poly { };