mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
31 lines
727 B
Nix
31 lines
727 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "monocraft";
|
|
version = "1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "IdreesInc";
|
|
repo = "Monocraft";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-frg7LcMv6zWPWxkr6RIl01fC68THELbb45mJVqefXC0=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm644 -t $out/share/fonts/opentype *.otf
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A programming font based on the typeface used in Minecraft";
|
|
homepage = "https://github.com/IdreesInc/Monocraft";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ zhaofengli ];
|
|
};
|
|
}
|