nix/pkgs/darkcold-gtk-theme.nix

31 lines
722 B
Nix
Raw Normal View History

2024-06-15 21:59:32 +02:00
{ lib, stdenv, fetchFromGitHub, }:
stdenv.mkDerivation {
pname = "darkcold-gtk-theme";
version = "v5.1.0";
src = fetchFromGitHub {
owner = "originalseed";
repo = "darkcold";
rev = "71f8fec1fbd62e1bf94fae839efea0acbcd30c0d";
hash = "sha256-Wk0TAGRUqAJn7PxyqKV3WnZXx2krEQKF/6KZ+R8ld+U=";
};
installPhase = ''
runHook preInstall
mkdir -p "$out/share/themes/darkcold/"
cp -r * "$out/share/themes/darkcold/";
cp userContent.css "$out/";
runHook postInstall
'';
meta = with lib; {
description = "DarkCold GTK2/3 + Firefox theme";
homepage = "https://github.com/${src.owner}/${src.repo}";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}