diff --git a/pkgs/desktops/cinnamon/default.nix b/pkgs/desktops/cinnamon/default.nix index b857fbfd031a..5b5ca276425a 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 000000000000..33acf3e89753 --- /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; + }; +}