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.
This commit is contained in:
Bobby Rong 2023-05-24 23:27:10 +08:00
parent d30264c269
commit b80eb4c2ff
No known key found for this signature in database
2 changed files with 41 additions and 0 deletions

View File

@ -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 { };

View File

@ -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;
};
}