From 2763d4d4c71cc3c645d223330d8a51dcb1bde157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Sat, 8 Oct 2016 11:00:08 -0300 Subject: [PATCH] input-fonts: init at 2016-10-06 (#19080) --- pkgs/data/fonts/input-fonts/default.nix | 46 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/data/fonts/input-fonts/default.nix diff --git a/pkgs/data/fonts/input-fonts/default.nix b/pkgs/data/fonts/input-fonts/default.nix new file mode 100644 index 00000000000..0879db309ea --- /dev/null +++ b/pkgs/data/fonts/input-fonts/default.nix @@ -0,0 +1,46 @@ +{ stdenv, requireFile, unzip }: + +stdenv.mkDerivation rec { + name = "input-fonts-${version}"; + version = "2016-10-06"; # date of the download and checksum + + src = requireFile { + name = "Input-Font.zip"; + url = "http://input.fontbureau.com/download/"; + sha256 = "06hrsrb5a6hzrgkkhk0gdj92rhgr433vgn4j5g3pd8f1ijlfqn4y"; + }; + + nativeBuildInputs = [ unzip ]; + + phases = [ "unpackPhase" "installPhase" ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + find Input_Fonts -name "*.ttf" -exec cp -a {} "$out"/share/fonts/truetype/ \; + mkdir -p "$out"/share/doc + cp -a *.txt "$out"/share/doc/ + ''; + + meta = with stdenv.lib; { + description = "Fonts for Code, from Font Bureau"; + longDescrition = '' + Input is a font family designed for computer programming, data, + and text composition. It was designed by David Jonathan Ross + between 2012 and 2014 and published by The Font Bureau. It + contains a wide array of styles so you can fine-tune the + typography that works best in your editing environment. + + Input Mono is a monospaced typeface, where all characters occupy + a fixed width. Input Sans and Serif are proportional typefaces + that are designed with all of the features of a good monospace — + generous spacing, large punctuation, and easily distinguishable + characters — but without the limitations of a fixed width. + ''; + homepage = http://input.fontbureau.com; + license = licenses.proprietary; + maintainers = with maintainers; [ romildo ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7897ab66d2a..cd72e76f46b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11619,6 +11619,8 @@ in inconsolata = callPackage ../data/fonts/inconsolata {}; inconsolata-lgc = callPackage ../data/fonts/inconsolata/lgc.nix {}; + input-fonts = callPackage ../data/fonts/input-fonts { }; + iosevka = callPackage ../data/fonts/iosevka { }; ipafont = callPackage ../data/fonts/ipafont {};