Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
2025-04-08 02:57:25 -04:00

75 lines
1.6 KiB
Nix

{
lib,
gobject-introspection,
meson,
ninja,
pkg-config,
wrapGAppsHook3,
cinnamon-gsettings-overrides,
desktop-file-utils,
glib,
gnome,
gtk3,
mate,
python3,
gsettings-desktop-schemas,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "themechanger";
version = "0.12.1";
format = "other";
src = fetchFromGitHub {
owner = "ALEX11BR";
repo = "ThemeChanger";
rev = "v${version}";
hash = "sha256-+uTofigS1F/nBNs/OyJ+RSz10DNnqgvNjWpkTXAvARM=";
};
nativeBuildInputs = [
gobject-introspection
meson
ninja
pkg-config
wrapGAppsHook3
desktop-file-utils
gtk3
];
buildInputs = [
cinnamon-gsettings-overrides
glib
gnome.nixos-gsettings-overrides
gtk3
mate.mate-desktop
mate.mate-settings-daemon
python3
gsettings-desktop-schemas
];
propagatedBuildInputs = with python3Packages; [
pygobject3
];
postPatch = ''
patchShebangs postinstall.py
'';
meta = with lib; {
homepage = "https://github.com/ALEX11BR/ThemeChanger";
description = "Theme changing utility for Linux";
mainProgram = "themechanger";
longDescription = ''
This app is a theme changing utility for Linux, BSDs, and whatnots.
It lets the user change GTK 2/3/4, Kvantum, icon and cursor themes, edit GTK CSS with live preview, and set some related options.
It also lets the user install icon and widget theme archives.
'';
maintainers = with maintainers; [ ALEX11BR ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}