font-adobe-utopia-type1: refactor, move to pkgs/by-name and rename from xorg.fontadobeutopiatype1
relevant changes: - remove some dependencies that dont't seem to be needed - 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
98df87ea67
commit
9ef0609cf3
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
mkfontscale,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-adobe-utopia-type1";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-adobe-utopia-type1-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-TLKAvEdpOwfF4A/Q5a1XIaq+vAVIw/BndOXMPLz3Vpc=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ mkfontscale ];
|
||||
|
||||
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 PostScript Type 1 fonts";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/font/adobe-utopia-type1";
|
||||
license = lib.licenses.adobeUtopia;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -6,6 +6,7 @@
|
||||
font-adobe-75dpi,
|
||||
font-adobe-utopia-100dpi,
|
||||
font-adobe-utopia-75dpi,
|
||||
font-adobe-utopia-type1,
|
||||
font-alias,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
@@ -125,6 +126,7 @@ self: with self; {
|
||||
fontadobe75dpi = font-adobe-75dpi;
|
||||
fontadobeutopia100dpi = font-adobe-utopia-100dpi;
|
||||
fontadobeutopia75dpi = font-adobe-utopia-75dpi;
|
||||
fontadobeutopiatype1 = font-adobe-utopia-type1;
|
||||
fontalias = font-alias;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
@@ -300,44 +302,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontadobeutopiatype1 = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
fontutil,
|
||||
mkfontscale,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-adobe-utopia-type1";
|
||||
version = "1.0.5";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-adobe-utopia-type1-1.0.5.tar.xz";
|
||||
sha256 = "15snyyy3rk75fikz1hs80nybxai1aynybl0gw32hffv98yy81cjc";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
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!
|
||||
fontarabicmisc = callPackage (
|
||||
{
|
||||
|
||||
@@ -322,6 +322,7 @@ print OUT <<EOF;
|
||||
font-adobe-75dpi,
|
||||
font-adobe-utopia-100dpi,
|
||||
font-adobe-utopia-75dpi,
|
||||
font-adobe-utopia-type1,
|
||||
font-alias,
|
||||
font-bh-ttf,
|
||||
font-bh-type1,
|
||||
@@ -441,6 +442,7 @@ self: with self; {
|
||||
fontadobe75dpi = font-adobe-75dpi;
|
||||
fontadobeutopia100dpi = font-adobe-utopia-100dpi;
|
||||
fontadobeutopia75dpi = font-adobe-utopia-75dpi;
|
||||
fontadobeutopiatype1 = font-adobe-utopia-type1;
|
||||
fontalias = font-alias;
|
||||
fontbhttf = font-bh-ttf;
|
||||
fontbhtype1 = font-bh-type1;
|
||||
|
||||
@@ -1019,7 +1019,6 @@ self: super:
|
||||
let
|
||||
# unfree but redistributable
|
||||
redist = [
|
||||
"fontadobeutopiatype1"
|
||||
"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-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
|
||||
|
||||
Reference in New Issue
Block a user