font-bitstream-{100dpi,75dpi,type1}: move font output from $out/lib to $out/share
This commit is contained in:
@@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [ font-util ];
|
||||
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ];
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/share/fonts/X11" ];
|
||||
|
||||
passthru = {
|
||||
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
||||
|
||||
@@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [ font-util ];
|
||||
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ];
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/share/fonts/X11" ];
|
||||
|
||||
passthru = {
|
||||
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
||||
|
||||
@@ -22,8 +22,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
fontforge
|
||||
];
|
||||
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ];
|
||||
|
||||
postBuild = ''
|
||||
# convert Postscript (Type 1) font to otf
|
||||
for i in $(find -type f -name '*.pfa' -o -name '*.pfb'); do
|
||||
@@ -34,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
postInstall = ''
|
||||
# install the otf fonts
|
||||
fontDir="$out/lib/X11/fonts/misc"
|
||||
fontDir="$out/share/fonts/X11/otf"
|
||||
install -Dm444 -t "$fontDir" *.otf
|
||||
mkfontscale "$fontDir"
|
||||
'';
|
||||
|
||||
@@ -902,5 +902,5 @@ self: super:
|
||||
|
||||
# deprecate some packages
|
||||
// lib.optionalAttrs config.allowAliases {
|
||||
fontbitstreamspeedo = throw "Bitstream Speedo is an obsolete font format that hasn't been supported by Xorg since 2005";
|
||||
fontbitstreamspeedo = throw "Bitstream Speedo is an obsolete font format that hasn't been supported by Xorg since 2005"; # added 2025-09-24
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user