Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Okasu
committed
Nov 28, 2016
1 parent
69e6495
commit de925e9
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters