4 , folder-color-switcher
11 , useDefaultExtensions ? true
15 selectedExtensions = extensions ++ lib.optionals useDefaultExtensions [
16 # We keep this in sync with a default Mint installation
17 # Right now (only) nemo-share is missing
23 nemoPythonExtensionsDeps = lib.concatMap (x: x.nemoPythonExtensionDeps or []) selectedExtensions;
26 name = "nemo-with-extensions-${nemo.version}";
28 paths = [ nemo ] ++ selectedExtensions;
30 nativeBuildInputs = [ makeWrapper ];
33 for f in $(find $out/bin/ $out/libexec/ -type l -not -path "*/.*"); do
35 --set "NEMO_EXTENSION_DIR" "$out/${nemo.extensiondir}" \
36 --set "NEMO_PYTHON_EXTENSION_DIR" "$out/share/nemo-python/extensions" \
37 --set "NEMO_PYTHON_SEARCH_PATH" "${python3.pkgs.makePythonPath nemoPythonExtensionsDeps}"
40 # Don't populate the same nemo actions twice when having this globally installed
41 # https://github.com/NixOS/nixpkgs/issues/190781#issuecomment-1365601853
42 rm -r $out/share/nemo/actions
44 # Point to wrapped binary in all service files
45 for file in "share/dbus-1/services/nemo.FileManager1.service" \
46 "share/dbus-1/services/nemo.service"
49 substitute "${nemo}/$file" "$out/$file" \
50 --replace "${nemo}" "$out"
54 meta = builtins.removeAttrs nemo.meta [ "name" "outputsToInstall" "position" ];