about summary refs log tree commit diff
path: root/pkgs/desktops/cinnamon/folder-color-switcher/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/cinnamon/folder-color-switcher/default.nix')
-rw-r--r--pkgs/desktops/cinnamon/folder-color-switcher/default.nix58
1 files changed, 0 insertions, 58 deletions
diff --git a/pkgs/desktops/cinnamon/folder-color-switcher/default.nix b/pkgs/desktops/cinnamon/folder-color-switcher/default.nix
deleted file mode 100644
index d0feadedbf33..000000000000
--- a/pkgs/desktops/cinnamon/folder-color-switcher/default.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{ stdenvNoCC
-, lib
-, fetchFromGitHub
-, gettext
-, python3
-}:
-
-stdenvNoCC.mkDerivation rec {
-  pname = "folder-color-switcher";
-  version = "1.6.2";
-
-  src = fetchFromGitHub {
-    owner = "linuxmint";
-    repo = pname;
-    # They don't really do tags, this is just a named commit.
-    rev = "18102c72ba072cd83ccee69e9051e87e93cab01a";
-    sha256 = "sha256-o2+KfHwPvoqDMBa9C/Sm/grDf0GWcjx2OtT4rhnCk5Q=";
-  };
-
-  nativeBuildInputs = [
-    gettext
-    python3.pkgs.wrapPython
-  ];
-
-  postPatch = ''
-    substituteInPlace usr/share/nemo-python/extensions/nemo-folder-color-switcher.py \
-      --replace "/usr/share/locale" "$out/share/locale" \
-      --replace "/usr/share/folder-color-switcher/colors.d" "/run/current-system/sw/share/folder-color-switcher/colors.d" \
-      --replace "/usr/share/folder-color-switcher/color.svg" "$out/share/folder-color-switcher/color.svg"
-
-    substituteInPlace usr/share/caja-python/extensions/caja-folder-color-switcher.py \
-      --replace "/usr/share/folder-color-switcher/colors.d" "/run/current-system/sw/share/folder-color-switcher/colors.d"
-  '';
-
-  installPhase = ''
-    runHook preInstall
-
-    mkdir -p $out
-    mv usr/share $out
-
-    runHook postInstall
-  '';
-
-  preFixup = ''
-    # For Gdk.cairo_surface_create_from_pixbuf()
-    # TypeError: Couldn't find foreign struct converter for 'cairo.Surface'
-    buildPythonPath ${python3.pkgs.pycairo}
-    patchPythonScript $out/share/nemo-python/extensions/nemo-folder-color-switcher.py
-  '';
-
-  meta = with lib; {
-    homepage = "https://github.com/linuxmint/folder-color-switcher";
-    description = "Change folder colors for Nemo and Caja";
-    license = licenses.gpl3Only;
-    platforms = platforms.linux;
-    maintainers = teams.cinnamon.members;
-  };
-}