default.nix (1085B)
1 { stdenv, fetchFromGitLab, glib, gettext, bash, nodePackages, gnome3, unzip }: 2 3 stdenv.mkDerivation rec { 4 pname = "nightthemeswitcher-gnome-shell-extension"; 5 version = "v39"; 6 7 src = fetchFromGitLab { 8 owner = "rmnvgr"; 9 repo = "nightthemeswitcher-gnome-shell-extension"; 10 rev = "${version}"; 11 sha256 = "0lciranfqvp14vr1jh9syj0vx2vpiy2zww0m4pw9pay1nis37izf"; 12 }; 13 14 nativeBuildInputs = [ 15 glib 16 gettext 17 nodePackages.typescript 18 gnome3.gnome-shell 19 unzip 20 ]; 21 22 uuid = "nightthemeswitcher@romainvigier.fr"; 23 24 installPhase = '' 25 mkdir -p $out/share/gnome-shell/extensions 26 unzip build/${uuid}.shell-extension.zip -d $out/share/gnome-shell/extensions/${uuid} 27 ''; 28 29 meta = with stdenv.lib; { 30 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."; 31 license = licenses.gpl3; 32 maintainers = with maintainers; [ vdemeester ]; 33 homepage = "https://github.com/rmnvgr/nightthemeswitcher-gnome-shell-extension"; 34 }; 35 }