font-bh-lucidatypewriter-100dpi: refactor, move to pkgs/by-name & rename from xorg.fontbhlucidatypewriter100dpi
this doesn't change the package output'
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
font-util,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-bh-lucidatypewriter-100dpi";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-bh-lucidatypewriter-100dpi-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-duwJ7aQJSinUe5HPWcProinI99HKa64qu7P5JeM96PI=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
bdftopcf
|
||||
font-util
|
||||
mkfontscale
|
||||
];
|
||||
|
||||
buildInputs = [ font-util ];
|
||||
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ];
|
||||
|
||||
passthru = {
|
||||
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts
|
||||
version="$(list-directory-versions --pname ${finalAttrs.pname} \
|
||||
--url https://xorg.freedesktop.org/releases/individual/font/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Lucida Sans Typewriter 100dpi pcf fonts";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/font/bh-lucidatypewriter-100dpi";
|
||||
# no license just a copyright notice
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -5,6 +5,7 @@
|
||||
font-alias,
|
||||
font-bh-100dpi,
|
||||
font-bh-75dpi,
|
||||
font-bh-lucidatypewriter-100dpi,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
font-encodings,
|
||||
@@ -122,6 +123,7 @@ self: with self; {
|
||||
fontalias = font-alias;
|
||||
fontbh100dpi = font-bh-100dpi;
|
||||
fontbh75dpi = font-bh-75dpi;
|
||||
fontbhlucidatypewriter100dpi = font-bh-lucidatypewriter-100dpi;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
fontmuttmisc = font-mutt-misc;
|
||||
@@ -538,47 +540,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontbhlucidatypewriter100dpi = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
fontutil,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-bh-lucidatypewriter-100dpi";
|
||||
version = "1.0.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-bh-lucidatypewriter-100dpi-1.0.4.tar.xz";
|
||||
sha256 = "1wp87pijbydkpcmawsyas7vwhad2xg1mkkwigga2jjh9lknhkv3n";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
bdftopcf
|
||||
fontutil
|
||||
mkfontscale
|
||||
];
|
||||
buildInputs = [ fontutil ];
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ];
|
||||
postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' '';
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontbhlucidatypewriter75dpi = callPackage (
|
||||
{
|
||||
|
||||
@@ -321,6 +321,7 @@ print OUT <<EOF;
|
||||
font-alias,
|
||||
font-bh-100dpi,
|
||||
font-bh-75dpi,
|
||||
font-bh-lucidatypewriter-100dpi,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
font-encodings,
|
||||
@@ -438,6 +439,7 @@ self: with self; {
|
||||
fontalias = font-alias;
|
||||
fontbh100dpi = font-bh-100dpi;
|
||||
fontbh75dpi = font-bh-75dpi;
|
||||
fontbhlucidatypewriter100dpi = font-bh-lucidatypewriter-100dpi;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
fontmuttmisc = font-mutt-misc;
|
||||
|
||||
@@ -1026,7 +1026,6 @@ self: super:
|
||||
|
||||
# Bigelow & Holmes fonts
|
||||
# https://www.x.org/releases/current/doc/xorg-docs/License.html#Bigelow_Holmes_Inc_and_URW_GmbH_Luxi_font_license
|
||||
"fontbhlucidatypewriter100dpi"
|
||||
"fontbhlucidatypewriter75dpi"
|
||||
];
|
||||
|
||||
|
||||
@@ -100,7 +100,6 @@ mirror://xorg/individual/font/font-adobe-utopia-100dpi-1.0.5.tar.xz
|
||||
mirror://xorg/individual/font/font-adobe-utopia-type1-1.0.5.tar.xz
|
||||
mirror://xorg/individual/font/font-arabic-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-bh-lucidatypewriter-75dpi-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-bh-lucidatypewriter-100dpi-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-bitstream-75dpi-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-bitstream-100dpi-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-bitstream-speedo-1.0.2.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user