2019-12-25 19:32:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python2 }:
|
|
|
|
# Python 3 support requires https://github.com/larsenwork/monoid/pull/233 to be merged
|
2017-06-28 12:42:37 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "monoid";
|
2017-06-28 12:42:37 +01:00
|
|
|
version = "2016-07-21";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "larsenwork";
|
|
|
|
repo = "monoid";
|
|
|
|
rev = "e9d77ec18c337dc78ceae787a673328615f0b120";
|
|
|
|
sha256 = "07h5q6cn6jjpmxp9vyag1bxx481waz344sr2kfs7d37bba8yjydj";
|
|
|
|
};
|
|
|
|
|
2019-12-25 19:32:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
(python2.withPackages (pp: with pp; [
|
|
|
|
fontforge
|
|
|
|
]))
|
|
|
|
];
|
2017-06-28 12:42:37 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
local _d=""
|
|
|
|
local _l=""
|
|
|
|
for _d in {Monoisome,Source}/*.sfdir; do
|
|
|
|
_l="''${_d##*/}.log"
|
|
|
|
echo "Building $_d (log at $_l)"
|
2017-09-23 23:04:52 +01:00
|
|
|
python Scripts/build.py 1 0 $_d > $_l
|
2017-06-28 12:42:37 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-05-13 04:54:44 +01:00
|
|
|
install -m444 -Dt $out/share/fonts/truetype _release/*
|
|
|
|
install -m444 -Dt $out/share/doc Readme.md
|
2017-06-28 12:42:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://larsenwork.com/monoid";
|
2017-06-28 12:42:37 +01:00
|
|
|
description = "Customisable coding font with alternates, ligatures and contextual positioning";
|
|
|
|
license = [ licenses.ofl licenses.mit ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|