mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
Revert "xorg: mark fonts with proprietary licences as unfree"
This reverts commit c45160366b
and hopefully fixes #99236: evaluation on Hydra.
For lack of a better method, I used the live jobset to bisect.
On the reverted commit it failed (tried several times because sometimes
evaluation fail transiently, possibly due to exhausting some resources)
and on the parent it succeeded: https://hydra.nixos.org/eval/1617490
Right now I don't have energy to find what exactly is wrong in the
commit, and it doesn't seem important in comparison to nixos-unstable
channel being stuck on a commit over one week old.
This commit is contained in:
parent
b28298e71f
commit
5d993eeb84
|
@ -50,6 +50,10 @@ self: super:
|
|||
hardeningDisable = [ "format" ];
|
||||
});
|
||||
|
||||
fontbhttf = super.fontbhttf.overrideAttrs (attrs: {
|
||||
meta = attrs.meta // { license = lib.licenses.unfreeRedistributable; };
|
||||
});
|
||||
|
||||
fontmiscmisc = super.fontmiscmisc.overrideAttrs (attrs: {
|
||||
postInstall =
|
||||
''
|
||||
|
@ -866,41 +870,3 @@ self: super:
|
|||
});
|
||||
|
||||
}
|
||||
|
||||
# mark some packages as unfree
|
||||
// (
|
||||
let
|
||||
# unfree but redistributable
|
||||
redist = [
|
||||
"fontadobeutopiatype1"
|
||||
"fontadobeutopia100dpi"
|
||||
"fontadobeutopia75dpi"
|
||||
"fontbhtype1"
|
||||
"fontibmtype1"
|
||||
"fontbhttf"
|
||||
"fontbh100dpi"
|
||||
"fontbh75dpi"
|
||||
];
|
||||
|
||||
# unfree, possibly not redistributable
|
||||
unfree = [
|
||||
# no license, just a copyright notice
|
||||
"fontbhlucidatypewriter100dpi"
|
||||
"fontbhlucidatypewriter75dpi"
|
||||
"fontdaewoomisc"
|
||||
|
||||
# unclear license, "permission to use"?
|
||||
"fontjismisc"
|
||||
];
|
||||
|
||||
setLicense = license: name:
|
||||
super.${name}.overrideAttrs (attrs: {
|
||||
meta = attrs.meta // { inherit license; };
|
||||
});
|
||||
mapNamesToAttrs = f: names: with lib;
|
||||
listToAttrs (zipListsWith nameValuePair names (map f names));
|
||||
|
||||
in
|
||||
mapNamesToAttrs (setLicense lib.licenses.unfreeRedistributable) redist //
|
||||
mapNamesToAttrs (setLicense lib.licenses.unfree) unfree
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue