2020-01-20 01:56:38 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2021-11-29 16:34:50 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2024-04-26 21:24:03 +01:00
|
|
|
, wrapGAppsHook3
|
2020-01-20 01:56:38 +00:00
|
|
|
, libxml2
|
|
|
|
, gtk3
|
2021-12-08 21:44:58 +00:00
|
|
|
, gvfs
|
2020-01-20 01:56:38 +00:00
|
|
|
, cinnamon-desktop
|
2022-07-27 05:05:17 +01:00
|
|
|
, xapp
|
2020-01-20 01:56:38 +00:00
|
|
|
, libexif
|
2024-06-25 14:41:57 +01:00
|
|
|
, json-glib
|
2020-01-20 01:56:38 +00:00
|
|
|
, exempi
|
|
|
|
, intltool
|
|
|
|
, shared-mime-info
|
2021-05-22 22:23:06 +01:00
|
|
|
, cinnamon-translations
|
2021-05-31 13:33:44 +01:00
|
|
|
, libgsf
|
2020-01-20 01:56:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nemo";
|
2024-08-11 02:21:08 +01:00
|
|
|
version = "6.2.8";
|
2020-01-20 01:56:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-09-14 22:47:11 +01:00
|
|
|
hash = "sha256-1GJLsUlptwXcZUWIOztskV0nHA9BnPmnVeTgUwJ+QDQ=";
|
2020-01-20 01:56:38 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 03:34:51 +00:00
|
|
|
patches = [
|
2022-12-19 09:39:42 +00:00
|
|
|
# Load extensions from NEMO_EXTENSION_DIR environment variable
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/78327
|
|
|
|
./load-extensions-from-env.patch
|
2022-12-17 03:34:51 +00:00
|
|
|
];
|
|
|
|
|
2020-01-20 01:56:38 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
cinnamon-desktop
|
|
|
|
libxml2
|
2022-07-27 05:05:17 +01:00
|
|
|
xapp
|
2020-01-20 01:56:38 +00:00
|
|
|
libexif
|
|
|
|
exempi
|
2021-12-08 21:44:58 +00:00
|
|
|
gvfs
|
2021-05-31 13:33:44 +01:00
|
|
|
libgsf
|
2024-06-25 14:41:57 +01:00
|
|
|
json-glib
|
2020-01-20 01:56:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-01-20 01:56:38 +00:00
|
|
|
ninja
|
2024-04-26 21:24:03 +01:00
|
|
|
wrapGAppsHook3
|
2020-01-20 01:56:38 +00:00
|
|
|
intltool
|
|
|
|
shared-mime-info
|
2023-06-22 12:49:31 +01:00
|
|
|
gobject-introspection
|
2020-01-20 01:56:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-05-22 22:23:06 +01:00
|
|
|
# use locales from cinnamon-translations
|
|
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
2020-01-20 01:56:38 +00:00
|
|
|
];
|
|
|
|
|
2024-03-21 16:13:39 +00:00
|
|
|
postInstall = ''
|
|
|
|
# This fixes open as root and handles nemo-with-extensions well.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/297570
|
|
|
|
substituteInPlace $out/share/polkit-1/actions/org.nemo.root.policy \
|
|
|
|
--replace-fail "$out/bin/nemo" "/run/current-system/sw/bin/nemo"
|
|
|
|
'';
|
|
|
|
|
2023-05-24 16:52:57 +01:00
|
|
|
preFixup = ''
|
|
|
|
# Used for some non-fd.o icons (e.g. xapp-text-case-symbolic)
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${xapp}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2022-12-19 09:39:42 +00:00
|
|
|
# Taken from libnemo-extension.pc.
|
|
|
|
passthru.extensiondir = "lib/nemo/extensions-3.0";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-20 01:56:38 +00:00
|
|
|
homepage = "https://github.com/linuxmint/nemo";
|
|
|
|
description = "File browser for Cinnamon";
|
|
|
|
license = [ licenses.gpl2 licenses.lgpl2 ];
|
|
|
|
platforms = platforms.linux;
|
2020-09-05 23:40:47 +01:00
|
|
|
maintainers = teams.cinnamon.members;
|
2022-12-19 09:39:42 +00:00
|
|
|
mainProgram = "nemo";
|
2020-01-20 01:56:38 +00:00
|
|
|
};
|
|
|
|
}
|
2021-12-08 21:44:58 +00:00
|
|
|
|