depot/third_party/nixpkgs/pkgs/by-name/mi/miracode/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
771 B
Nix

{ stdenvNoCC, lib, fetchurl }:
let
version = "1.0";
in
stdenvNoCC.mkDerivation {
pname = "miracode";
inherit version;
src = fetchurl {
url = "https://github.com/IdreesInc/Miracode/releases/download/v${version}/Miracode.ttf";
hash = "sha256-Q+/D/TPlqOt779qYS/dF7ahEd3Mm4a4G+wdHB+Gutmo=";
};
dontUnpack = true;
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm644 $src $out/share/fonts/truetype/Miracode.ttf
runHook postInstall
'';
meta = with lib; {
description = "Sharp, readable, vector-y version of Monocraft";
homepage = "https://github.com/IdreesInc/Miracode";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ coca ];
};
}