diff options
author | leenaars <leenaars@users.noreply.github.com> | 2016-07-19 12:23:09 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-07-19 12:23:09 +0200 |
commit | 4aea0ba917cf4b6f86c31183f395db8f5a692c98 (patch) | |
tree | c9649b8747691562c86540d4ba647f3e50b400aa /pkgs/data | |
parent | b49bedd75b39f732600f96210120cc3fa098155f (diff) | |
download | nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.tar nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.tar.gz nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.tar.bz2 nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.tar.lz nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.tar.xz nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.tar.zst nixlib-4aea0ba917cf4b6f86c31183f395db8f5a692c98.zip |
liberationsansnarrow: init at 1.07.3 (#17080)
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/liberationsansnarrow/binary.nix | 22 | ||||
-rw-r--r-- | pkgs/data/fonts/liberationsansnarrow/default.nix | 39 |
2 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/data/fonts/liberationsansnarrow/binary.nix b/pkgs/data/fonts/liberationsansnarrow/binary.nix new file mode 100644 index 000000000000..c7afc91af84f --- /dev/null +++ b/pkgs/data/fonts/liberationsansnarrow/binary.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, liberationsansnarrow }: + +stdenv.mkDerivation rec { + version = "1.07.3"; + name = "liberationsansnarrow-${version}"; + src = fetchurl { + url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz"; + sha256 = "0qkr7n97jmj4q85jr20nsf6n5b48j118l9hr88vijn22ikad4wsp"; + }; + + phases = [ "unpackPhase" "installPhase" ]; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -v $(find . -name '*Narrow*.ttf') $out/share/fonts/truetype + + mkdir -p "$out/doc/${name}" + cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true + ''; + + inherit (liberationsansnarrow) meta; +} diff --git a/pkgs/data/fonts/liberationsansnarrow/default.nix b/pkgs/data/fonts/liberationsansnarrow/default.nix new file mode 100644 index 000000000000..6a5e81cd3c75 --- /dev/null +++ b/pkgs/data/fonts/liberationsansnarrow/default.nix @@ -0,0 +1,39 @@ +{stdenv, fetchurl, fontforge, pythonPackages, python}: + +stdenv.mkDerivation rec { + pname = "liberationsansnarrow"; + version = "1.07.3"; + name = "${pname}"; + + src = fetchurl { + url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz"; + sha256 = "0qkr7n97jmj4q85jr20nsf6n5b48j118l9hr88vijn22ikad4wsp"; + }; + + buildInputs = [ fontforge pythonPackages.fonttools python ]; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -v $(find . -name '*Narrow*.ttf') $out/share/fonts/truetype + + mkdir -p "$out/doc/${name}" + cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true + ''; + + meta = with stdenv.lib; { + description = "Liberation Sans Narrow Font Family is a replacement for Arial Narrow"; + longDescription = '' + Liberation Sans Narrow is a font originally created by Ascender + Inc and licensed to Oracle Corporation under a GPLv2 license. It is + metrically compatible with the commonly used Arial Narrow fonts + on Microsoft systems. It is no longer distributed with the + latest versions of the Liberation Fonts, as Red Hat has changed the + license to the Open Font License. + ''; + + license = licenses.gpl2; + homepage = https://fedorahosted.org/liberation-fonts/; + maintainers = [ maintainers.leenaars + ]; + }; +} |