depot/third_party/nixpkgs/pkgs/data/fonts/martian-mono/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

35 lines
900 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "martian-mono";
version = "1.0.0";
src = fetchzip {
url = "https://github.com/evilmartians/mono/releases/download/v${version}/martian-mono-${version}-otf.zip";
sha256 = "sha256-hC08IHWqg+x3qoEf4EL98ZbGeqdwjnMpDovEiWrWPpI=";
stripRoot = false;
};
dontPatch = true;
dontConfigure = true;
dontBuild = true;
doCheck = false;
dontFixup = true;
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype/ *.otf
runHook postInstall
'';
meta = with lib; {
description = "Free and open-source monospaced font from Evil Martians";
homepage = "https://github.com/evilmartians/mono";
changelog = "https://github.com/evilmartians/mono/raw/v${version}/Changelog.md";
license = licenses.ofl;
maintainers = [ ];
platforms = platforms.all;
};
}