2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitLab }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-shell-extension-night-theme-switcher";
|
|
|
|
version = "19";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "rmnvgr";
|
|
|
|
repo = "nightthemeswitcher-gnome-shell-extension";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ll0yf1skf51wa10mlrajd1dy459w33kx0i3vhfcx2pdk7mw5a3c";
|
|
|
|
};
|
|
|
|
|
|
|
|
# makefile tries to do install in home directory using
|
|
|
|
# `gnome-extensions install`
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
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/
|
|
|
|
cp -r src/ $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/";
|
|
|
|
};
|
|
|
|
}
|