nix/pkgs/darkcold-gtk-theme.nix
2024-06-15 21:59:32 +02:00

30 lines
722 B
Nix

{ 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;
};
}