more portable fonts installation
This commit is contained in:
parent
34649a6598
commit
93b10f9a82
1 changed files with 5 additions and 11 deletions
|
@ -75,17 +75,11 @@ in {
|
||||||
|
|
||||||
fonts.fonts = with pkgs;
|
fonts.fonts = with pkgs;
|
||||||
[
|
[
|
||||||
(runCommand "berkeley-fonts" { } ''
|
(fetchzip {
|
||||||
mkdir -vp "$out/share/fonts/opentype"
|
url = "file://" + ./fonts.zip;
|
||||||
mkdir -vp "$out/share/fonts/truetype"
|
sha256 = "sha256-EfWED+hF/A0og3+oTYUuDUSq3OhdY2+fHmGKkBMQOnc=";
|
||||||
${pkgs.unzip}/bin/unzip ${
|
stripRoot = false;
|
||||||
./fonts.zip
|
})
|
||||||
} \*.otf -d $out/share/fonts/opentype
|
|
||||||
${pkgs.unzip}/bin/unzip ${
|
|
||||||
./fonts.zip
|
|
||||||
} \*.ttf -d $out/share/fonts/truetype
|
|
||||||
|
|
||||||
'')
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
Loading…
Reference in a new issue