From 4eb382953974587047fc1d0b53ec26375900f084 Mon Sep 17 00:00:00 2001 From: oxalica Date: Wed, 13 May 2020 13:24:14 +0800 Subject: [PATCH] sarasa-gothic: replace p7zip with libarchive --- pkgs/data/fonts/sarasa-gothic/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/sarasa-gothic/default.nix b/pkgs/data/fonts/sarasa-gothic/default.nix index 1be4835e20c..eb1b7bf49e3 100644 --- a/pkgs/data/fonts/sarasa-gothic/default.nix +++ b/pkgs/data/fonts/sarasa-gothic/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, p7zip }: +{ lib, fetchurl, libarchive }: let version = "0.8.2"; @@ -12,7 +12,8 @@ in fetchurl { downloadToTemp = true; postFetch = '' - ${p7zip}/bin/7z x $downloadedFile -o$out/share/fonts + mkdir -p $out/share/fonts + ${libarchive}/bin/bsdtar -xf $downloadedFile -C $out/share/fonts ''; meta = with lib; {