summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-05-24 23:27:10 +0800
committerBobby Rong <rjl931189261@126.com>2023-05-25 09:42:25 +0800
commitb80eb4c2ff3d491a5ad24650c4d0ac1937ee20af (patch)
tree91649d34ecb8995bd40c0c0ff63f5bcb7ee4f84f /pkgs/desktops
parentd30264c2691128adc261d7c9388033645f0e742b (diff)
downloadnixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.tar
nixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.tar.gz
nixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.tar.bz2
nixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.tar.lz
nixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.tar.xz
nixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.tar.zst
nixpkgs-b80eb4c2ff3d491a5ad24650c4d0ac1937ee20af.zip
cinnamon.nemo-emblems: init at 5.6.0
Similar to folder-color-switcher, it sounds like we don't need to
patch nemo-emblems.py in any way thanks to how nemo-python works.
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/cinnamon/default.nix4
-rw-r--r--pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix37
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/default.nix b/pkgs/desktops/cinnamon/default.nix
index b857fbfd031..5b5ca276425 100644
--- a/pkgs/desktops/cinnamon/default.nix
+++ b/pkgs/desktops/cinnamon/default.nix
@@ -13,8 +13,11 @@ lib.makeScope pkgs.newScope (self: with self; {
   });
 
   # Extensions added here will be shipped by default
+  # We keep this in sync with a default Mint installation
+  # Right now (only) nemo-share is missing
   nemoExtensions = [
     folder-color-switcher
+    nemo-emblems
     nemo-fileroller
     nemo-python
   ];
@@ -33,6 +36,7 @@ lib.makeScope pkgs.newScope (self: with self; {
   cjs = callPackage ./cjs { };
   folder-color-switcher = callPackage ./folder-color-switcher { };
   nemo = callPackage ./nemo { };
+  nemo-emblems = callPackage ./nemo-extensions/nemo-emblems { };
   nemo-fileroller = callPackage ./nemo-extensions/nemo-fileroller { };
   nemo-python = callPackage ./nemo-extensions/nemo-python { };
   nemo-with-extensions = callPackage ./nemo/wrapper.nix { };
diff --git a/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix b/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix
new file mode 100644
index 00000000000..33acf3e8975
--- /dev/null
+++ b/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix
@@ -0,0 +1,37 @@
+{ python3
+, lib
+, fetchFromGitHub
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "nemo-emblems";
+  version = "5.6.0";
+
+  format = "setuptools";
+
+  src = fetchFromGitHub {
+    owner = "linuxmint";
+    repo = "nemo-extensions";
+    rev = version;
+    sha256 = "sha256-cxutiz5bc/dZ9D7XzvMWodWNYvNJPj+5IhJDPJwnb5I=";
+  };
+
+  sourceRoot = "${src.name}/nemo-emblems";
+
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "/usr/share" "share"
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-emblems";
+    description = "Change a folder or file emblem in Nemo";
+    longDescription = ''
+      Nemo extension that allows you to change folder or file emblems.
+      When adding this to nemo-with-extensions you also need to add nemo-python.
+    '';
+    license = licenses.gpl3Only;
+    platforms = platforms.linux;
+    maintainers = teams.cinnamon.members;
+  };
+}