8 stdenvNoCC.mkDerivation rec {
9 pname = "folder-color-switcher";
12 src = fetchFromGitHub {
15 # They don't really do tags, this is just a named commit.
16 rev = "c9d1a2b9c7f40ff7bb77ee74a277988bb8a4adf2";
17 hash = "sha256-5k0YybA40MefqQixNFyQFMuy7t4aSGsI3BK0RbZDu28=";
22 python3.pkgs.wrapPython
26 substituteInPlace usr/share/nemo-python/extensions/nemo-folder-color-switcher.py \
27 --replace "/usr/share/locale" "$out/share/locale" \
28 --replace "/usr/share/folder-color-switcher/colors.d" "/run/current-system/sw/share/folder-color-switcher/colors.d" \
29 --replace "/usr/share/folder-color-switcher/color.svg" "$out/share/folder-color-switcher/color.svg"
31 substituteInPlace usr/share/caja-python/extensions/caja-folder-color-switcher.py \
32 --replace "/usr/share/folder-color-switcher/colors.d" "/run/current-system/sw/share/folder-color-switcher/colors.d"
44 # For Gdk.cairo_surface_create_from_pixbuf()
45 # TypeError: Couldn't find foreign struct converter for 'cairo.Surface'
46 passthru.nemoPythonExtensionDeps = [ python3.pkgs.pycairo ];
49 homepage = "https://github.com/linuxmint/folder-color-switcher";
50 description = "Change folder colors for Nemo and Caja";
51 license = licenses.gpl3Only;
52 platforms = platforms.linux;
53 maintainers = teams.cinnamon.members;