nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 43 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, python39 }: 2 3stdenv.mkDerivation { 4 pname = "monoid"; 5 version = "2020-10-26"; 6 7 src = fetchFromGitHub { 8 owner = "larsenwork"; 9 repo = "monoid"; 10 rev = "0673c8d6728df093faee9f183b6dfa62939df8c0"; 11 sha256 = "sha256-u2jwVOC9QM2JHsdAVBuEpqqdiBAVs+IWnpp48A5Xk28="; 12 }; 13 14 nativeBuildInputs = [ 15 (python39.withPackages (pp: with pp; [ 16 fontforge 17 ])) 18 ]; 19 20 buildPhase = '' 21 local _d="" 22 local _l="" 23 for _d in {Monoisome,Source}/*.sfdir; do 24 _l="''${_d##*/}.log" 25 echo "Building $_d (log at $_l)" 26 python Scripts/build.py 1 0 $_d > $_l 27 done 28 ''; 29 30 installPhase = '' 31 install -m444 -Dt $out/share/fonts/truetype _release/* 32 install -m444 -Dt $out/share/doc Readme.md 33 ''; 34 35 meta = with lib; { 36 homepage = "http://larsenwork.com/monoid"; 37 description = "Customisable coding font with alternates, ligatures and contextual positioning"; 38 license = [ licenses.ofl licenses.mit ]; 39 platforms = platforms.all; 40 maintainers = [ maintainers.romildo ]; 41 }; 42} 43