2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python39 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "monoid";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "2020-10-26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "larsenwork";
|
|
|
|
repo = "monoid";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "0673c8d6728df093faee9f183b6dfa62939df8c0";
|
|
|
|
sha256 = "sha256-u2jwVOC9QM2JHsdAVBuEpqqdiBAVs+IWnpp48A5Xk28=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
(python39.withPackages (pp: with pp; [
|
2020-04-24 23:36:52 +00:00
|
|
|
fontforge
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
|
|
|
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 1 0 $_d > $_l
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype _release/*
|
|
|
|
install -m444 -Dt $out/share/doc Readme.md
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
2022-07-14 12:49:19 +00:00
|
|
|
|