diff --git a/pkgs/data/fonts/commit-mono/default.nix b/pkgs/data/fonts/commit-mono/default.nix new file mode 100644 index 000000000000..87d5f9dab25f --- /dev/null +++ b/pkgs/data/fonts/commit-mono/default.nix @@ -0,0 +1,34 @@ +{ lib +, stdenvNoCC +, fetchzip +}: +stdenvNoCC.mkDerivation rec { + pname = "commit-mono"; + version = "1.132"; + + src = fetchzip { + url = "https://github.com/eigilnikolajsen/commit-mono/releases/download/${version}/CommitMono-${version}.zip"; + sha256 = "sha256-a9zxzjfOFmqemSIb4Tav0l7YtKvbyizDy+1dwPuZ4d4="; + stripRoot = false; + }; + + dontConfigure = true; + dontPatch = true; + dontBuild = true; + dontFixup = true; + doCheck = false; + + installPhase = '' + runHook preInstall + install -Dm644 -t $out/share/fonts/opentype/ *.otf + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e2b7de49d502..3e8adaefd5e7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28875,6 +28875,8 @@ with pkgs; combinatorial_designs = callPackage ../data/misc/combinatorial_designs { }; + commit-mono = callPackage ../data/fonts/commit-mono { }; + conway_polynomials = callPackage ../data/misc/conway_polynomials { }; cooper-hewitt = callPackage ../data/fonts/cooper-hewitt { };