From 0977ab058d82317561b6e82f70f938ac3bc11fef Mon Sep 17 00:00:00 2001 From: Isa Ozler Date: Fri, 2 Jun 2023 00:47:59 +0200 Subject: [PATCH] kode-mono font added v1.017 --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/data/fonts/kode-mono/default.nix | 28 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/data/fonts/kode-mono/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c0c968545f5f..34d40bc7a8e9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6880,6 +6880,12 @@ githubId = 137306; name = "Michele Catalano"; }; + isaozler = { + email = "isaozler@gmail.com"; + github = "isaozler"; + githubId = 1378630; + name = "Isa Ozler"; + }; isgy = { name = "isgy"; email = "isgy@teiyg.com"; diff --git a/pkgs/data/fonts/kode-mono/default.nix b/pkgs/data/fonts/kode-mono/default.nix new file mode 100644 index 000000000000..b68851c91dff --- /dev/null +++ b/pkgs/data/fonts/kode-mono/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenvNoCC, fetchzip }: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "kode-mono"; + version = "1.017"; + + src = fetchzip { + url = "https://github.com/isaozler/kode-mono/releases/download/${finalAttrs.version}/kode-mono-fonts.zip"; + hash = "sha256-5bTciBQhWNUokOP3YzAwrvp7jeyiF4JMdJDX+6NXvLU="; + stripRoot = false; + }; + + installPhase = '' + runHook preInstall + install -Dm644 kode-mono-fonts/fonts/ttf/*.ttf -t $out/share/fonts/truetype/ + install -Dm644 kode-mono-fonts/fonts/variable/*.ttf -t $out/share/fonts/truetype/ + runHook postInstall + ''; + + meta = with lib; { + description = "A custom-designed typeface explicitly created for the developer community"; + homepage = "https://kodemono.com/"; + changelog = "https://github.com/isaozler/kode-mono/blob/main/CHANGELOG.md"; + license = licenses.ofl; + maintainers = [ maintainers.isaozler ]; + platforms = platforms.all; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 373e4f383ed3..9c8297740ec8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28384,6 +28384,8 @@ with pkgs; kochi-substitute-naga10 = callPackage ../data/fonts/kochi-substitute-naga10 { }; + kode-mono = callPackage ../data/fonts/kode-mono { }; + kopia = callPackage ../tools/backup/kopia { }; kora-icon-theme = callPackage ../data/icons/kora-icon-theme {