mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
liberationsansnarrow: init at 1.07.3 (#17080)
This commit is contained in:
parent
b49bedd75b
commit
4aea0ba917
22
pkgs/data/fonts/liberationsansnarrow/binary.nix
Normal file
22
pkgs/data/fonts/liberationsansnarrow/binary.nix
Normal file
@ -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;
|
||||||
|
}
|
39
pkgs/data/fonts/liberationsansnarrow/default.nix
Normal file
39
pkgs/data/fonts/liberationsansnarrow/default.nix
Normal file
@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -11892,6 +11892,9 @@ in
|
|||||||
liberation_ttf_binary = callPackage ../data/fonts/redhat-liberation-fonts/binary.nix { };
|
liberation_ttf_binary = callPackage ../data/fonts/redhat-liberation-fonts/binary.nix { };
|
||||||
liberation_ttf = self.liberation_ttf_binary;
|
liberation_ttf = self.liberation_ttf_binary;
|
||||||
|
|
||||||
|
liberationsansnarrow = callPackage ../data/fonts/liberationsansnarrow { };
|
||||||
|
liberationsansnarrow_binary = callPackage ../data/fonts/liberationsansnarrow/binary.nix { };
|
||||||
|
|
||||||
libertine = callPackage ../data/fonts/libertine { };
|
libertine = callPackage ../data/fonts/libertine { };
|
||||||
|
|
||||||
lmmath = callPackage ../data/fonts/lmodern/lmmath.nix {};
|
lmmath = callPackage ../data/fonts/lmodern/lmmath.nix {};
|
||||||
|
Loading…
Reference in New Issue
Block a user