home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5f3d403fcfa06fa90780a53d3eae9a4c18980e2b
parent 7d66e8aca3d493b7779003a1ea18f151fbd999ad
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri,  2 Oct 2020 12:29:31 +0200

systems/hokkaido: add nightthemeswitcher

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gnome/extensions/nightthemeswitcher/default.nix | 35+++++++++++++++++++++++++++++++++++
Musers/vincent/desktop/gnome.nix | 1+
3 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -120,4 +120,5 @@ rec { gnome-bluetooth-quick-connect = pkgs.callPackage ./gnome/extensions/bluetooth-quick-connect { }; hidetopbar = pkgs.callPackage ./gnome/extensions/hide-top-bar { }; noannoyance = pkgs.callPackage ./gnome/extensions/noannoyance { }; + nightthemeswitcher = pkgs.callPackage ./gnome/extensions/nightthemeswitcher { }; } diff --git a/pkgs/gnome/extensions/nightthemeswitcher/default.nix b/pkgs/gnome/extensions/nightthemeswitcher/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitLab, glib, gettext, bash, nodePackages, gnome3, unzip }: + +stdenv.mkDerivation rec { + pname = "nightthemeswitcher-gnome-shell-extension"; + version = "v39"; + + src = fetchFromGitLab { + owner = "rmnvgr"; + repo = "nightthemeswitcher-gnome-shell-extension"; + rev = "${version}"; + sha256 = "0lciranfqvp14vr1jh9syj0vx2vpiy2zww0m4pw9pay1nis37izf"; + }; + + nativeBuildInputs = [ + glib + gettext + nodePackages.typescript + gnome3.gnome-shell + unzip + ]; + + uuid = "nightthemeswitcher@romainvigier.fr"; + + installPhase = '' + mkdir -p $out/share/gnome-shell/extensions + unzip build/${uuid}.shell-extension.zip -d $out/share/gnome-shell/extensions/${uuid} + ''; + + meta = with stdenv.lib; { + description = "Automatically toggle your light and dark GTK, GNOME Shell, icon and cursor themes variants, switch backgrounds and run custom commands at sunset and sunrise."; + license = licenses.gpl3; + maintainers = with maintainers; [ vdemeester ]; + homepage = "https://github.com/rmnvgr/nightthemeswitcher-gnome-shell-extension"; + }; +} diff --git a/users/vincent/desktop/gnome.nix b/users/vincent/desktop/gnome.nix @@ -32,6 +32,7 @@ my.gnome-bluetooth-quick-connect my.hidetopbar my.noannoyance + my.nightthemeswitcher gnome3.gnome-shell-extensions pop-gtk-theme