uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/data/fonts/vista-fonts/default.nix
Normal file
42
pkgs/data/fonts/vista-fonts/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenvNoCC, fetchurl, cabextract }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "vista-fonts";
|
||||
version = "1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/mscorefonts2/cabs/PowerPointViewer.exe";
|
||||
sha256 = "07vhjdw8iip7gxk6wvp4myhvbn9619g10j9qvpbzz4ihima57ry4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cabextract ];
|
||||
|
||||
unpackPhase = ''
|
||||
cabextract --lowercase --filter ppviewer.cab $src
|
||||
cabextract --lowercase --filter '*.TTF' ppviewer.cab
|
||||
cabextract --lowercase --filter '*.TTC' ppviewer.cab
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp *.ttf *.ttc $out/share/fonts/truetype
|
||||
|
||||
# Set up no-op font configs to override any aliases set up by
|
||||
# other packages.
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
for name in Calibri Cambria Candara Consolas Constantia Corbel ; do
|
||||
substitute ${./no-op.conf} $out/etc/fonts/conf.d/30-''${name,,}.conf \
|
||||
--subst-var-by fontname $name
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Some TrueType fonts from Microsoft Windows Vista (Calibri, Cambria, Candara, Consolas, Constantia, Corbel)";
|
||||
homepage = "http://www.microsoft.com/typography/ClearTypeFonts.mspx";
|
||||
license = lib.licenses.unfree; # haven't read the EULA, but we probably can't redistribute these files, so...
|
||||
|
||||
# Set a non-zero priority to allow easy overriding of the
|
||||
# fontconfig configuration files.
|
||||
priority = 5;
|
||||
};
|
||||
}
|
||||
9
pkgs/data/fonts/vista-fonts/no-op.conf
Normal file
9
pkgs/data/fonts/vista-fonts/no-op.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- This configuation is intentionally left empty in order to
|
||||
override any other font package that may wish to set up an
|
||||
alias for the Microsoft @fontname@ font. If you actually do
|
||||
want to have the alias then please change the priority of that
|
||||
package; see the Nix manual page for nix-env for details. -->
|
||||
</fontconfig>
|
||||
Loading…
Add table
Add a link
Reference in a new issue