2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fontforge, python3Packages, python3 }:
|
2016-07-19 10:23:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-13 17:36:11 +00:00
|
|
|
pname = "liberation-sans-narrow";
|
|
|
|
version = "1.07.6";
|
2016-07-19 10:23:09 +00:00
|
|
|
|
2018-12-13 17:36:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "liberationfonts";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1qw554jbdnqkg6pjjl4cqkgsalq3398kzvww2naw30vykcz752bm";
|
2016-07-19 10:23:09 +00:00
|
|
|
};
|
|
|
|
|
2019-11-04 06:21:57 +00:00
|
|
|
buildInputs = [ fontforge python3Packages.fonttools python3 ];
|
2016-07-19 10:23:09 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-05-13 01:55:32 +00:00
|
|
|
find . -name '*Narrow*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
|
|
|
install -m444 -Dt $out/doc/${pname}-${version} AUTHORS ChangeLog COPYING License.txt README.rst
|
2016-07-19 10:23:09 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-07-19 10:23:09 +00:00
|
|
|
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;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/liberationfonts";
|
2018-12-13 17:36:11 +00:00
|
|
|
maintainers = [ maintainers.leenaars ];
|
2016-07-19 10:23:09 +00:00
|
|
|
};
|
|
|
|
}
|