Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { lib |
| 2 | , fetchFromGitHub |
| 3 | , stdenv |
| 4 | , |
Skyler Grey | 95c67e0 | 2022-10-30 22:28:42 +0000 | [diff] [blame] | 5 | }: |
| 6 | stdenv.mkDerivation rec { |
| 7 | pname = "monocraft"; |
| 8 | version = "1.2"; |
| 9 | |
| 10 | src = fetchFromGitHub { |
| 11 | owner = "IdreesInc"; |
| 12 | repo = "Monocraft"; |
| 13 | rev = "v${version}"; |
Skyler Grey | 0c7d092 | 2022-10-30 22:59:22 +0000 | [diff] [blame] | 14 | sha256 = "sha256-frg7LcMv6zWPWxkr6RIl01fC68THELbb45mJVqefXC0="; |
Skyler Grey | 95c67e0 | 2022-10-30 22:28:42 +0000 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | dontBuild = true; |
| 18 | |
| 19 | installPhase = '' |
| 20 | mkdir -p $out/bin $out/share/fonts/opentype |
| 21 | mv Monocraft.otf $out/share/fonts/opentype |
| 22 | ''; |
| 23 | |
| 24 | meta = with lib; { |
| 25 | description = "A programming font based on the typeface used in Minecraft"; |
| 26 | homepage = "https://github.com/IdreesInc/Monocraft"; |
| 27 | license = licenses.ofl; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 28 | maintainers = with maintainers; [ minion3665 ]; |
Skyler Grey | 95c67e0 | 2022-10-30 22:28:42 +0000 | [diff] [blame] | 29 | }; |
| 30 | } |