From 226aadd6b07de3576c05b977dcf51070def050f9 Mon Sep 17 00:00:00 2001 From: romildo Date: Wed, 28 Jun 2017 08:42:37 -0300 Subject: [PATCH] monoid: init at 2016-07-21 --- pkgs/data/fonts/monoid/default.nix | 41 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/data/fonts/monoid/default.nix diff --git a/pkgs/data/fonts/monoid/default.nix b/pkgs/data/fonts/monoid/default.nix new file mode 100644 index 000000000000..5e9a2c219167 --- /dev/null +++ b/pkgs/data/fonts/monoid/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchFromGitHub, python, fontforge }: + +stdenv.mkDerivation rec { + name = "monoid-${version}"; + version = "2016-07-21"; + + src = fetchFromGitHub { + owner = "larsenwork"; + repo = "monoid"; + rev = "e9d77ec18c337dc78ceae787a673328615f0b120"; + sha256 = "07h5q6cn6jjpmxp9vyag1bxx481waz344sr2kfs7d37bba8yjydj"; + }; + + nativeBuildInputs = [ python fontforge ]; + + enableParallelBuilding = true; + + buildPhase = '' + local _d="" + local _l="" + for _d in {Monoisome,Source}/*.sfdir; do + _l="''${_d##*/}.log" + echo "Building $_d (log at $_l)" + python Scripts/build.py ${if enableParallelBuilding then "$NIX_BUILD_CORES" else "1"} 0 $_d > $_l + done + ''; + + installPhase = '' + mkdir -p $out/share/{doc,fonts/truetype} + cp -va _release/* $out/share/fonts/truetype + cp -va Readme.md $out/share/doc + ''; + + meta = with stdenv.lib; { + homepage = http://larsenwork.com/monoid; + description = "Customisable coding font with alternates, ligatures and contextual positioning"; + license = [ licenses.ofl licenses.mit ]; + platforms = platforms.all; + maintainers = [ maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ff58787a2865..1ea4f77a23fe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12860,6 +12860,8 @@ with pkgs; mobile_broadband_provider_info = callPackage ../data/misc/mobile-broadband-provider-info { }; + monoid = callPackage ../data/fonts/monoid { }; + mononoki = callPackage ../data/fonts/mononoki { }; moka-icon-theme = callPackage ../data/icons/moka-icon-theme { };