diff options
author | goibhniu <cillian.deroiste@gmail.com> | 2016-12-01 14:07:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-01 14:07:40 +0100 |
commit | 304150f5768e0abc3bb9a88bf55354dddcbfb3f2 (patch) | |
tree | 77935721671abc161f0fdd68399beaf3f8582660 /pkgs/data | |
parent | f4aab5b211e3302d81612bdc76aa8164c913ed8b (diff) | |
parent | de925e952e477153f555a3abcc911e4c843e33a1 (diff) |
Merge pull request #20743 from Okasu/terminus-font-ttf
terminus-font-ttf: init at 4.40.1
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/terminus-font-ttf/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/data/fonts/terminus-font-ttf/default.nix b/pkgs/data/fonts/terminus-font-ttf/default.nix new file mode 100644 index 0000000000000..e9adc4c0422bb --- /dev/null +++ b/pkgs/data/fonts/terminus-font-ttf/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "terminus-font-ttf-${version}"; + version = "4.40.1"; + + src = fetchurl { + url = "http://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip"; + sha256 = "c3cb690c2935123035a0b1f3bfdd9511c282dab489cd423e161a47c592edf188"; + }; + + buildInputs = [unzip]; + + installPhase = '' + for i in *.ttf; do + local destname="$(echo "$i" | sed -E 's|-[[:digit:].]+\.ttf$|.ttf|')" + install -Dm 644 "$i" "$out/share/fonts/truetype/$destname" + done + + install -Dm 644 COPYING "$out/share/doc/COPYING" + ''; + + meta = with stdenv.lib; { + description = "A clean fixed width TTF font"; + longDescription = '' + Monospaced bitmap font designed for long work with computers + (TTF version, mainly for Java applications) + ''; + homepage = http://files.ax86.net/terminus-ttf; + license = licenses.ofl; + maintainers = with maintainers; [ okasu ]; + platforms = platforms.linux; + }; +} |