841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
32 lines
992 B
Nix
32 lines
992 B
Nix
{ lib, stdenv, fetchFromGitLab, glib, gnome, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-night-theme-switcher";
|
|
version = "50";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "rmnvgr";
|
|
repo = "nightthemeswitcher-gnome-shell-extension";
|
|
rev = "v${version}";
|
|
sha256 = "0rs08kr3wizs1vpkmm6pbcvnn7rz47yrq7vnb1s8d58yda9a850d";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [ glib gnome.gnome-shell ];
|
|
|
|
uuid = "nightthemeswitcher@romainvigier.fr";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/gnome-shell/extensions/
|
|
unzip build/${uuid}.shell-extension.zip -d $out/share/gnome-shell/extensions/${uuid}
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Automatically change the GTK theme to dark variant when Night Light activates";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ jonafato ];
|
|
homepage = "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/";
|
|
};
|
|
}
|