1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00

hexchat: simplify theme example

This commit is contained in:
Thiago Kenji Okada 2021-10-29 01:44:27 -03:00 committed by Robert Helgesson
parent bb72555852
commit 7e30aec282
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -321,21 +321,16 @@ in {
type = nullOr package; type = nullOr package;
default = null; default = null;
example = literalExpression '' example = literalExpression ''
stdenv.mkDerivation rec { source = pkgs.fetchzip {
name = "hexchat-theme-MatriY"; url = "https://dl.hexchat.net/themes/Monokai.hct#Monokai.zip";
buildInputs = [ pkgs.unzip ]; sha256 = "sha256-WCdgEr8PwKSZvBMs0fN7E2gOjNM0c2DscZGSKSmdID0=";
src = fetchurl { stripRoot = false;
url = "https://dl.hexchat.net/themes/MatriY.hct";
sha256 = "sha256-ffkFJvySfl0Hwja3y7XCiNJceUrGvlEoEm97eYNMTZc=";
};
unpackPhase = "unzip ''${src}";
installPhase = "cp -r . $out";
}; };
''; '';
description = '' description = ''
Theme package for HexChat. Expects a derivation containing decompressed Theme package for HexChat. Expects a derivation containing decompressed
theme files. <literal>.hct</literal> file format requires unzip theme files. Note, <literal>.hct</literal> files are actually ZIP files,
decompression, as seen in example. as seen in example.
''; '';
}; };
}; };