more portable fonts installation

This commit is contained in:
Cyryl Płotnicki 2023-01-06 08:03:31 +00:00
parent 34649a6598
commit 93b10f9a82

View file

@ -75,17 +75,11 @@ in {
fonts.fonts = with pkgs;
[
(runCommand "berkeley-fonts" { } ''
mkdir -vp "$out/share/fonts/opentype"
mkdir -vp "$out/share/fonts/truetype"
${pkgs.unzip}/bin/unzip ${
./fonts.zip
} \*.otf -d $out/share/fonts/opentype
${pkgs.unzip}/bin/unzip ${
./fonts.zip
} \*.ttf -d $out/share/fonts/truetype
'')
(fetchzip {
url = "file://" + ./fonts.zip;
sha256 = "sha256-EfWED+hF/A0og3+oTYUuDUSq3OhdY2+fHmGKkBMQOnc=";
stripRoot = false;
})
];
nix = {