chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / fo / folder-color-switcher / package.nix
blobe6fd9dd0e569179c23f22cdf36e485d3f15def14
1 { stdenvNoCC
2 , lib
3 , fetchFromGitHub
4 , gettext
5 , python3
6 }:
8 stdenvNoCC.mkDerivation rec {
9   pname = "folder-color-switcher";
10   version = "1.6.4";
12   src = fetchFromGitHub {
13     owner = "linuxmint";
14     repo = pname;
15     # They don't really do tags, this is just a named commit.
16     rev = "c9d1a2b9c7f40ff7bb77ee74a277988bb8a4adf2";
17     hash = "sha256-5k0YybA40MefqQixNFyQFMuy7t4aSGsI3BK0RbZDu28=";
18   };
20   nativeBuildInputs = [
21     gettext
22     python3.pkgs.wrapPython
23   ];
25   postPatch = ''
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"
33   '';
35   installPhase = ''
36     runHook preInstall
38     mkdir -p $out
39     mv usr/share $out
41     runHook postInstall
42   '';
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 ];
48   meta = with lib; {
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;
54   };