mkfontscale: refactor and move to pkgs/by-name from xorg namespace (#415128)
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
libfontenc,
|
||||
freetype,
|
||||
xorgproto,
|
||||
zlib,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "mkfontscale";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/mkfontscale-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-KSHNw0TxrO4EvNbqHilWXBMIJjAG4TSp7jjPnJ1v514=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libfontenc
|
||||
freetype
|
||||
xorgproto
|
||||
zlib
|
||||
];
|
||||
|
||||
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/app/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Utilities to create the fonts.scale and fonts.dir index files used by the legacy X11 font system";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/mkfontscale";
|
||||
license = with lib.licenses; [
|
||||
mit
|
||||
mitOpenGroup
|
||||
hpndSellVariant
|
||||
];
|
||||
maintainers = [ ];
|
||||
mainProgram = "mkfontscale";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -22,6 +22,7 @@
|
||||
lndir,
|
||||
luit,
|
||||
makedepend,
|
||||
mkfontscale,
|
||||
pixman,
|
||||
sessreg,
|
||||
util-macros,
|
||||
@@ -50,6 +51,7 @@ self: with self; {
|
||||
lndir
|
||||
luit
|
||||
makedepend
|
||||
mkfontscale
|
||||
pixman
|
||||
sessreg
|
||||
xbitmaps
|
||||
@@ -2966,46 +2968,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
mkfontscale = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libfontenc,
|
||||
freetype,
|
||||
xorgproto,
|
||||
zlib,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "mkfontscale";
|
||||
version = "1.2.3";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/mkfontscale-1.2.3.tar.xz";
|
||||
sha256 = "0pp7dyfrrkrqxslk9q8660k0h4swaqlixsnnph2fxb7i8k1ws899";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libfontenc
|
||||
freetype
|
||||
xorgproto
|
||||
zlib
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
oclock = callPackage (
|
||||
{
|
||||
|
||||
@@ -310,6 +310,7 @@ print OUT <<EOF;
|
||||
lndir,
|
||||
luit,
|
||||
makedepend,
|
||||
mkfontscale,
|
||||
pixman,
|
||||
sessreg,
|
||||
util-macros,
|
||||
@@ -338,6 +339,7 @@ self: with self; {
|
||||
lndir
|
||||
luit
|
||||
makedepend
|
||||
mkfontscale
|
||||
pixman
|
||||
sessreg
|
||||
xbitmaps
|
||||
|
||||
@@ -462,7 +462,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
mkfontscale = addMainProgram super.mkfontscale { };
|
||||
oclock = addMainProgram super.oclock { };
|
||||
smproxy = addMainProgram super.smproxy { };
|
||||
transset = addMainProgram super.transset { };
|
||||
|
||||
@@ -10,7 +10,6 @@ mirror://xorg/individual/app/editres-1.0.9.tar.xz
|
||||
mirror://xorg/individual/app/fonttosfnt-1.2.4.tar.xz
|
||||
mirror://xorg/individual/app/iceauth-1.0.10.tar.xz
|
||||
mirror://xorg/individual/app/listres-1.0.6.tar.xz
|
||||
mirror://xorg/individual/app/mkfontscale-1.2.3.tar.xz
|
||||
mirror://xorg/individual/app/oclock-1.0.6.tar.xz
|
||||
mirror://xorg/individual/app/setxkbmap-1.3.4.tar.xz
|
||||
mirror://xorg/individual/app/smproxy-1.0.8.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user