From 93b10f9a82b13d7a27b400396efae7958dc17fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 6 Jan 2023 08:03:31 +0000 Subject: [PATCH] more portable fonts installation --- nixos/common.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/nixos/common.nix b/nixos/common.nix index aa3ba9ea..99771238 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -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 = {