Unverified Commit e9742cf5 authored by quantenzitrone's avatar quantenzitrone
Browse files

font-bitstream-{100dpi,75dpi,type1}: move font output from $out/lib to $out/share

parent 4c4fd26c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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}" ''
+1 −1
Original line number Diff line number Diff line
@@ -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}" ''
+1 −3
Original line number Diff line number Diff line
@@ -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"
  '';
+1 −1
Original line number Diff line number Diff line
@@ -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
}