Unverified Commit 85786b9e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #311743 from Coca162/miracode-1.0

miracode: init at 1.0
parents baf54cdc 7db4467e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3864,6 +3864,14 @@
    githubId = 180339;
    name = "Andrew Cobb";
  };
  coca = {
    github = "Coca162";
    githubId = 62479942;
    name = "Coca";
    keys = [{
      fingerprint = "99CB 86FF 62BB 7DA4 8903  B16D 0328 2DF8 8179 AB19";
    }];
  };
  coconnor = {
    email = "coreyoconnor@gmail.com";
    github = "coreyoconnor";
+32 −0
Original line number Diff line number Diff line
{ 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 = "A sharp, readable, vector-y version of Monocraft";
    homepage = "https://github.com/IdreesInc/Miracode";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ coca ];
  };
}