font-daewoo-misc: refactor, move to pkgs/by-name and rename from xorg.fontdaewoomisc
the output doesn't change
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
fontutil,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-daewoo-misc";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-daewoo-misc-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-9jyLPcjzAJjLhot9ssLAyLWz/Szv0EQDVpekPUx6TzE=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
bdftopcf
|
||||
mkfontscale
|
||||
];
|
||||
|
||||
buildInputs = [ fontutil ];
|
||||
|
||||
configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ];
|
||||
|
||||
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 = "Daewoo Gothic and Daewoo Mincho pcf fonts";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/font/daewoo-misc";
|
||||
# no license, just a copyright notice
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -21,6 +21,7 @@
|
||||
font-bitstream-type1,
|
||||
font-cronyx-cyrillic,
|
||||
font-cursor-misc,
|
||||
font-daewoo-misc,
|
||||
font-encodings,
|
||||
font-isas-misc,
|
||||
font-micro-misc,
|
||||
@@ -227,6 +228,7 @@ self: with self; {
|
||||
fontbitstreamtype1 = font-bitstream-type1;
|
||||
fontcronyxcyrillic = font-cronyx-cyrillic;
|
||||
fontcursormisc = font-cursor-misc;
|
||||
fontdaewoomisc = font-daewoo-misc;
|
||||
fontisasmisc = font-isas-misc;
|
||||
fontmicromisc = font-micro-misc;
|
||||
fontmisccyrillic = font-misc-cyrillic;
|
||||
@@ -386,46 +388,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontdaewoomisc = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
fontutil,
|
||||
bdftopcf,
|
||||
mkfontscale,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-daewoo-misc";
|
||||
version = "1.0.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-daewoo-misc-1.0.4.tar.xz";
|
||||
sha256 = "0cagg963v94paq1l9l7g5kyv7df8q31b4zcbhv5rh07kr0yqng7n";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
bdftopcf
|
||||
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!
|
||||
fontdecmisc = callPackage (
|
||||
{
|
||||
|
||||
@@ -352,6 +352,7 @@ print OUT <<EOF;
|
||||
font-bitstream-type1,
|
||||
font-cronyx-cyrillic,
|
||||
font-cursor-misc,
|
||||
font-daewoo-misc,
|
||||
font-encodings,
|
||||
font-isas-misc,
|
||||
font-micro-misc,
|
||||
@@ -558,6 +559,7 @@ self: with self; {
|
||||
fontbitstreamtype1 = font-bitstream-type1;
|
||||
fontcronyxcyrillic = font-cronyx-cyrillic;
|
||||
fontcursormisc = font-cursor-misc;
|
||||
fontdaewoomisc = font-daewoo-misc;
|
||||
fontisasmisc = font-isas-misc;
|
||||
fontmicromisc = font-micro-misc;
|
||||
fontmisccyrillic = font-misc-cyrillic;
|
||||
|
||||
@@ -800,9 +800,6 @@ self: super:
|
||||
|
||||
# unfree, possibly not redistributable
|
||||
unfree = [
|
||||
# no license, just a copyright notice
|
||||
"fontdaewoomisc"
|
||||
|
||||
# unclear license, "permission to use"?
|
||||
"fontjismisc"
|
||||
];
|
||||
|
||||
@@ -68,7 +68,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-daewoo-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-dec-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-ibm-type1-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-jis-misc-1.0.4.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user