gnomeExtensions.night-theme-switcher: 2.1 -> 19

Is now hosted on gitlab.
This commit is contained in:
Tor Hedin Brønner 2020-03-08 15:28:35 +01:00 committed by Jan Tojnar
parent 954baa6751
commit fbca8c8b9f
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,21 +1,31 @@
{ stdenv, fetchgit }:
{ stdenv, fetchFromGitLab }:
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-night-theme-switcher";
version = "2.1";
version = "19";
src = fetchgit {
url = "https://git.romainvigier.fr/Romain/nightthemeswitcher-gnome-shell-extension";
src = fetchFromGitLab {
owner = "rmnvgr";
repo = "nightthemeswitcher-gnome-shell-extension";
rev = "v${version}";
sha256 = "1md44vmc83cp35riszhdvysnvl8pmkcpf5j6n4i2b3wwcjwxqwfy";
sha256 = "1ll0yf1skf51wa10mlrajd1dy459w33kx0i3vhfcx2pdk7mw5a3c";
};
makeFlags = [ "GSEXT_DIR_LOCAL=${placeholder "out"}/share/gnome-shell/extensions" ];
# makefile tries to do install in home directory using
# `gnome-extensions install`
dontBuild = true;
uuid = "nightthemeswitcher@romainvigier.fr";
installPhase = ''
mkdir -p $out/share/gnome-shell/extensions/
cp -r src/ $out/share/gnome-shell/extensions/${uuid}
'';
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://git.romainvigier.fr/Romain/nightthemeswitcher-gnome-shell-extension;
homepage = "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/";
};
}