font-ibm-type1: refactor, move to pkgs/by-name and rename from xorg.fontibmtype1
the output doesn't change
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
fontutil,
|
||||
mkfontscale,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-ibm-type1";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-ibm-type1-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-xDlelbpG1AxK0XN+kcrCDAq3VBEym2DbXZn+2Stgzn8=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
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 = "IBM Courier Type1 fonts";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/font/ibm-type1";
|
||||
license = lib.licenses.unfreeRedistributable;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -24,6 +24,7 @@
|
||||
font-daewoo-misc,
|
||||
font-dec-misc,
|
||||
font-encodings,
|
||||
font-ibm-type1,
|
||||
font-isas-misc,
|
||||
font-micro-misc,
|
||||
font-misc-cyrillic,
|
||||
@@ -231,6 +232,7 @@ self: with self; {
|
||||
fontcursormisc = font-cursor-misc;
|
||||
fontdaewoomisc = font-daewoo-misc;
|
||||
fontdecmisc = font-dec-misc;
|
||||
fontibmtype1 = font-ibm-type1;
|
||||
fontisasmisc = font-isas-misc;
|
||||
fontmicromisc = font-micro-misc;
|
||||
fontmisccyrillic = font-misc-cyrillic;
|
||||
@@ -390,44 +392,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
fontibmtype1 = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
fontutil,
|
||||
mkfontscale,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "font-ibm-type1";
|
||||
version = "1.0.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/font/font-ibm-type1-1.0.4.tar.xz";
|
||||
sha256 = "0zyfc0mxkzlrbpdn16rj25abf2hcqb592zkks550rm26paamwff4";
|
||||
};
|
||||
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!
|
||||
fontjismisc = callPackage (
|
||||
{
|
||||
|
||||
@@ -355,6 +355,7 @@ print OUT <<EOF;
|
||||
font-daewoo-misc,
|
||||
font-dec-misc,
|
||||
font-encodings,
|
||||
font-ibm-type1,
|
||||
font-isas-misc,
|
||||
font-micro-misc,
|
||||
font-misc-cyrillic,
|
||||
@@ -562,6 +563,7 @@ self: with self; {
|
||||
fontcursormisc = font-cursor-misc;
|
||||
fontdaewoomisc = font-daewoo-misc;
|
||||
fontdecmisc = font-dec-misc;
|
||||
fontibmtype1 = font-ibm-type1;
|
||||
fontisasmisc = font-isas-misc;
|
||||
fontmicromisc = font-micro-misc;
|
||||
fontmisccyrillic = font-misc-cyrillic;
|
||||
|
||||
@@ -793,11 +793,6 @@ self: super:
|
||||
# mark some packages as unfree
|
||||
// (
|
||||
let
|
||||
# unfree but redistributable
|
||||
redist = [
|
||||
"fontibmtype1"
|
||||
];
|
||||
|
||||
# unfree, possibly not redistributable
|
||||
unfree = [
|
||||
# unclear license, "permission to use"?
|
||||
@@ -815,8 +810,7 @@ self: super:
|
||||
f: names: lib.listToAttrs (lib.zipListsWith lib.nameValuePair names (map f names));
|
||||
|
||||
in
|
||||
mapNamesToAttrs (setLicense lib.licenses.unfreeRedistributable) redist
|
||||
// mapNamesToAttrs (setLicense lib.licenses.unfree) unfree
|
||||
mapNamesToAttrs (setLicense lib.licenses.unfree) unfree
|
||||
)
|
||||
|
||||
# deprecate some packages
|
||||
|
||||
@@ -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-ibm-type1-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-jis-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-misc-meltho-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-misc-misc-1.1.3.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user