font-adobe-utopia-75dpi: refactor, move to pkgs/by-name and rename from xorg.fontadobeutopia75dpi
relevant changes: - font is now in $out/share/fonts/X11 instead of $out/lib/X11/fonts i have no idea why fonts would be in lib, so lets see if this breaks anything - font is now under the license adobeUtopia (recognised by SPDX) instead of unfreeRedistributable
This commit is contained in:
committed by
Alyssa Ross
parent
e21431a165
commit
98df87ea67
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
font-util,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-adobe-utopia-75dpi";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-adobe-utopia-75dpi-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-pyYkWTLQck+gxTjJkoEdY9WX5fU5KPQEjpyvViN5d2A=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
bdftopcf
|
||||
font-util
|
||||
mkfontscale
|
||||
];
|
||||
|
||||
buildInputs = [ font-util ];
|
||||
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/share/fonts/X11" ];
|
||||
|
||||
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 = "Adobe Utopia 75dpi pcf fonts";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/font/adobe-utopia-75dpi";
|
||||
license = lib.licenses.adobeUtopia;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -5,6 +5,7 @@
|
||||
font-adobe-100dpi,
|
||||
font-adobe-75dpi,
|
||||
font-adobe-utopia-100dpi,
|
||||
font-adobe-utopia-75dpi,
|
||||
font-alias,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
@@ -123,6 +124,7 @@ self: with self; {
|
||||
fontadobe100dpi = font-adobe-100dpi;
|
||||
fontadobe75dpi = font-adobe-75dpi;
|
||||
fontadobeutopia100dpi = font-adobe-utopia-100dpi;
|
||||
fontadobeutopia75dpi = font-adobe-utopia-75dpi;
|
||||
fontalias = font-alias;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
@@ -298,47 +300,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontadobeutopia75dpi = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
fontutil,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-adobe-utopia-75dpi";
|
||||
version = "1.0.5";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-adobe-utopia-75dpi-1.0.5.tar.xz";
|
||||
sha256 = "0q3pg4imdbwwiq2g8a1rypjrgmb33n0r5j9qqnh4ywnh69cj89m7";
|
||||
};
|
||||
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!
|
||||
fontadobeutopiatype1 = callPackage (
|
||||
{
|
||||
|
||||
@@ -321,6 +321,7 @@ print OUT <<EOF;
|
||||
font-adobe-100dpi,
|
||||
font-adobe-75dpi,
|
||||
font-adobe-utopia-100dpi,
|
||||
font-adobe-utopia-75dpi,
|
||||
font-alias,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
@@ -439,6 +440,7 @@ self: with self; {
|
||||
fontadobe100dpi = font-adobe-100dpi;
|
||||
fontadobe75dpi = font-adobe-75dpi;
|
||||
fontadobeutopia100dpi = font-adobe-utopia-100dpi;
|
||||
fontadobeutopia75dpi = font-adobe-utopia-75dpi;
|
||||
fontalias = font-alias;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
|
||||
@@ -1020,7 +1020,6 @@ self: super:
|
||||
# unfree but redistributable
|
||||
redist = [
|
||||
"fontadobeutopiatype1"
|
||||
"fontadobeutopia75dpi"
|
||||
"fontibmtype1"
|
||||
"fontbh100dpi"
|
||||
"fontbh75dpi"
|
||||
|
||||
@@ -93,7 +93,6 @@ mirror://xorg/individual/driver/xf86-video-vesa-2.6.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-vmware-13.4.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-voodoo-1.2.6.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-wsfb-0.4.0.tar.bz2
|
||||
mirror://xorg/individual/font/font-adobe-utopia-75dpi-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
|
||||
|
||||
Reference in New Issue
Block a user