1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00: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;
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. <literal>.hct</literal> file format requires unzip
decompression, as seen in example.
theme files. Note, <literal>.hct</literal> files are actually ZIP files,
as seen in example.
'';
};
};