2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, fetchFromGitLab, glib, gnome3, unzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-shell-extension-night-theme-switcher";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "36";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "rmnvgr";
|
|
|
|
repo = "nightthemeswitcher-gnome-shell-extension";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1c88979qprwb5lj0v7va017w7rdr89a648anhw4k5q135jwyskpz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ glib gnome3.gnome-shell unzip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
uuid = "nightthemeswitcher@romainvigier.fr";
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/share/gnome-shell/extensions/
|
2020-09-25 04:45:31 +00:00
|
|
|
unzip build/${uuid}.shell-extension.zip -d $out/share/gnome-shell/extensions/${uuid}
|
2020-07-18 16:06:22 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Automatically change the GTK theme to dark variant when Night Light activates";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jonafato ];
|
|
|
|
homepage = "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/";
|
|
|
|
};
|
|
|
|
}
|