font-bh-100dpi: refactor, migrate to pkgs/by-name & rename from xorg.fontbh100dpi
the package output doesn't change
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
font-util,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-bh-100dpi";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-bh-100dpi-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-/Y9e/oSR+qvdJ0SAjT1Or9rlyD5hcBfH/d0nFtBJqx4=";
|
||||
};
|
||||
|
||||
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 = "Luxi 100dpi pcf fonts";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/font/bh-100dpi";
|
||||
license = lib.licenses.unfreeRedistributable;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -3,6 +3,7 @@
|
||||
lib,
|
||||
bdftopcf,
|
||||
font-alias,
|
||||
font-bh-100dpi,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
font-encodings,
|
||||
@@ -118,6 +119,7 @@ self: with self; {
|
||||
;
|
||||
encodings = font-encodings;
|
||||
fontalias = font-alias;
|
||||
fontbh100dpi = font-bh-100dpi;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
fontmuttmisc = font-mutt-misc;
|
||||
@@ -534,47 +536,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontbh100dpi = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
fontutil,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-bh-100dpi";
|
||||
version = "1.0.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-bh-100dpi-1.0.4.tar.xz";
|
||||
sha256 = "07mb9781c9yxzp3ifw317v4fbnmg9qyqv0244zfspylihkz5x3zx";
|
||||
};
|
||||
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!
|
||||
fontbh75dpi = callPackage (
|
||||
{
|
||||
|
||||
@@ -319,6 +319,7 @@ print OUT <<EOF;
|
||||
lib,
|
||||
bdftopcf,
|
||||
font-alias,
|
||||
font-bh-100dpi,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
font-encodings,
|
||||
@@ -434,6 +435,7 @@ self: with self; {
|
||||
;
|
||||
encodings = font-encodings;
|
||||
fontalias = font-alias;
|
||||
fontbh100dpi = font-bh-100dpi;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
fontmuttmisc = font-mutt-misc;
|
||||
|
||||
@@ -1023,7 +1023,6 @@ self: super:
|
||||
"fontadobeutopia100dpi"
|
||||
"fontadobeutopia75dpi"
|
||||
"fontibmtype1"
|
||||
"fontbh100dpi"
|
||||
"fontbh75dpi"
|
||||
|
||||
# Bigelow & Holmes fonts
|
||||
|
||||
@@ -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-75dpi-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-bh-100dpi-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
|
||||
|
||||
Reference in New Issue
Block a user