From c2c775d047fdbeefd9db7bfcd519636498c6679d Mon Sep 17 00:00:00 2001 From: Masayuki Takeda Date: Sat, 10 Jun 2017 08:29:36 +0900 Subject: [PATCH] rictydiminished-with-firacode: init at 0.0.1 (#26485) --- .../rictydiminished-with-firacode/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/data/fonts/rictydiminished-with-firacode/default.nix diff --git a/pkgs/data/fonts/rictydiminished-with-firacode/default.nix b/pkgs/data/fonts/rictydiminished-with-firacode/default.nix new file mode 100644 index 000000000000..074fceeac94a --- /dev/null +++ b/pkgs/data/fonts/rictydiminished-with-firacode/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchgit, fontforge, pythonFull }: + +stdenv.mkDerivation rec { + name = "rictydiminished-with-firacode-${version}"; + version = "0.0.1"; + src = fetchgit { + url = "https://github.com/hakatashi/RictyDiminished-with-FiraCode.git"; + rev = "refs/tags/${version}"; + sha256 = "12lhb0k4d8p4lzw9k6hlsxpfpc15zfshz1h5cbaa88sb8n5jh360"; + fetchSubmodules = true; + }; + + buildPhase = '' + make + ''; + + installPhase = '' + mkdir -p $out/share/fonts/rictydiminished-with-firacode + cp *.ttf $out/share/fonts/rictydiminished-with-firacode + ''; + + nativeBuildInputs = [ + fontforge + (pythonFull.withPackages (ps: [ + ps.jinja2 + ps."3to2" + ps.fonttools + ])) + ]; + + meta = with stdenv.lib; { + homepage = https://github.com/hakatashi/RictyDiminished-with-FiraCode; + description = "The best Japanese programming font meets the awesone ligatures of Firacode"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ mt-caret ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e2af723792f5..c8cd658e88f3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12947,6 +12947,8 @@ with pkgs; raleway = callPackage ../data/fonts/raleway { }; + rictydiminished-with-firacode = callPackage ../data/fonts/rictydiminished-with-firacode { }; + roboto = callPackage ../data/fonts/roboto { }; roboto-mono = callPackage ../data/fonts/roboto-mono { };