From 2336543338d1df3861b1d6b06364ae12b0fcf0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=B0=D1=80=D0=B8=D0=BA?= <65870+suhr@users.noreply.github.com> Date: Sat, 10 Oct 2020 10:38:22 +0300 Subject: [PATCH] julia-mono: init at 0.018 --- pkgs/data/fonts/julia-mono/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/data/fonts/julia-mono/default.nix diff --git a/pkgs/data/fonts/julia-mono/default.nix b/pkgs/data/fonts/julia-mono/default.nix new file mode 100644 index 000000000000..c6bcdfd3b2ae --- /dev/null +++ b/pkgs/data/fonts/julia-mono/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchzip }: + +let + version = "0.018"; +in fetchzip { + name = "JuliaMono-${version}"; + url = "https://github.com/cormullion/juliamono/releases/download/v${version}/JuliaMono.zip"; + sha256 = "0ss79a9gymbhih5pgjkg1mipmk0qsvqqwlkqcdm9fz87d7kfhby3"; + + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + ''; + + meta = { + description = "A monospaced font for scientific and technical computing"; + maintainers = with lib.maintainers; [ suhr ]; + platforms = with lib.platforms; all; + homepage = "https://juliamono.netlify.app/"; + license = lib.licenses.ofl; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c2371e455b0f..480d069f3879 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19087,6 +19087,8 @@ in junicode = callPackage ../data/fonts/junicode { }; + julia-mono = callPackage ../data/fonts/julia-mono { }; + kanji-stroke-order-font = callPackage ../data/fonts/kanji-stroke-order-font {}; kawkab-mono-font = callPackage ../data/fonts/kawkab-mono {};