From 713589f6462ba4ad12e0c2db18e6b3c58810a686 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 7 Apr 2024 11:03:51 -0400 Subject: [PATCH] packages(fluent-icons): Simplify with fetchzip --- packages/fluent-icons.nix | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/packages/fluent-icons.nix b/packages/fluent-icons.nix index 5bd410bf..6d0d13f8 100644 --- a/packages/fluent-icons.nix +++ b/packages/fluent-icons.nix @@ -1,34 +1,22 @@ { stdenvNoCC -, fetchurl -, unar +, fetchzip }: stdenvNoCC.mkDerivation { pname = "fluent-icons"; version = "2024-01-02"; - src = fetchurl { - name = "Fluent Icons.zip"; + src = fetchzip { url = "https://files.catbox.moe/1we56t.zip"; - hash = "sha256-J530v9QRGv/c0PBYcCVpGSgqvirlx4eQzsP+Kqhft8A="; + hash = "sha256-gs33iDv+u6O03a+/QvDtKt/aHduZww4F3Fm3F40d1GI="; + stripRoot = false; }; - nativeBuildInputs = [ unar ]; - - unpackPhase = /* bash */ '' - runHook preUnpack - - cp "$src" $(stripHash "$src") - unar $(stripHash "$src") - - runHook postUnpack - ''; - installPhase = /* bash */ '' runHook preInstall - mkdir -p $out/share/eww - cp -r */ $out/share/eww + mkdir -p $out + cp -r * $out runHook postInstall '';