From 7e30aec28236cbfeddd932c94b801adcc718e6c6 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 29 Oct 2021 01:44:27 -0300 Subject: [PATCH] hexchat: simplify theme example --- modules/programs/hexchat.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/modules/programs/hexchat.nix b/modules/programs/hexchat.nix index c0955aa6d..b0836758f 100644 --- a/modules/programs/hexchat.nix +++ b/modules/programs/hexchat.nix @@ -321,21 +321,16 @@ in { type = nullOr package; default = null; example = literalExpression '' - stdenv.mkDerivation rec { - name = "hexchat-theme-MatriY"; - buildInputs = [ pkgs.unzip ]; - src = fetchurl { - url = "https://dl.hexchat.net/themes/MatriY.hct"; - sha256 = "sha256-ffkFJvySfl0Hwja3y7XCiNJceUrGvlEoEm97eYNMTZc="; - }; - unpackPhase = "unzip ''${src}"; - installPhase = "cp -r . $out"; + source = pkgs.fetchzip { + url = "https://dl.hexchat.net/themes/Monokai.hct#Monokai.zip"; + sha256 = "sha256-WCdgEr8PwKSZvBMs0fN7E2gOjNM0c2DscZGSKSmdID0="; + stripRoot = false; }; ''; description = '' Theme package for HexChat. Expects a derivation containing decompressed - theme files. .hct file format requires unzip - decompression, as seen in example. + theme files. Note, .hct files are actually ZIP files, + as seen in example. ''; }; };