depot/third_party/nixpkgs/pkgs/data/fonts/commit-mono/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

35 lines
982 B
Nix

{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation rec {
pname = "commit-mono";
version = "1.141";
src = fetchzip {
url = "https://github.com/eigilnikolajsen/commit-mono/releases/download/v${version}/CommitMono-${version}.zip";
hash = "sha256-ErC4ZM17rYq+5FRW9m9nIbQOjQGTCCoNhXHxb7Swd84=";
stripRoot = false;
};
dontConfigure = true;
dontPatch = true;
dontBuild = true;
dontFixup = true;
doCheck = false;
installPhase = ''
runHook preInstall
install -Dm644 CommitMono-${version}/*.otf -t $out/share/fonts/opentype
install -Dm644 CommitMono-${version}/ttfautohint/*.ttf -t $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {
description = "An anonymous and neutral programming typeface focused on creating a better reading experience";
homepage = "https://commitmono.com/";
license = licenses.ofl;
maintainers = [ maintainers.yoavlavi ];
platforms = platforms.all;
};
}