2020-04-24 23:36:52 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-12-06 16:07:01 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
2021-12-19 01:06:50 +00:00
|
|
|
, gvfs
|
2020-04-24 23:36:52 +00:00
|
|
|
, cinnamon-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
, xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
, libexif
|
|
|
|
, exempi
|
|
|
|
, intltool
|
|
|
|
, shared-mime-info
|
2021-05-28 09:39:13 +00:00
|
|
|
, cinnamon-translations
|
2021-06-01 10:57:12 +00:00
|
|
|
, libgsf
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nemo";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "6.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-vSLFp0sgqGsZtcXdv82PVH0HcBbmcxrMySLFCBrLJpA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
patches = [
|
|
|
|
# Load extensions from NEMO_EXTENSION_DIR environment variable
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/78327
|
|
|
|
./load-extensions-from-env.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
cinnamon-desktop
|
|
|
|
libxml2
|
2022-08-12 12:06:08 +00:00
|
|
|
xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
libexif
|
|
|
|
exempi
|
2021-12-19 01:06:50 +00:00
|
|
|
gvfs
|
2021-06-01 10:57:12 +00:00
|
|
|
libgsf
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
ninja
|
|
|
|
wrapGAppsHook
|
|
|
|
intltool
|
|
|
|
shared-mime-info
|
2023-08-10 07:59:29 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-05-28 09:39:13 +00:00
|
|
|
# use locales from cinnamon-translations
|
|
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +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-07-15 17:15:38 +00:00
|
|
|
preFixup = ''
|
|
|
|
# Used for some non-fd.o icons (e.g. xapp-text-case-symbolic)
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${xapp}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
# Taken from libnemo-extension.pc.
|
|
|
|
passthru.extensiondir = "lib/nemo/extensions-3.0";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/linuxmint/nemo";
|
|
|
|
description = "File browser for Cinnamon";
|
|
|
|
license = [ licenses.gpl2 licenses.lgpl2 ];
|
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2022-12-28 21:21:41 +00:00
|
|
|
mainProgram = "nemo";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
2021-12-19 01:06:50 +00:00
|
|
|
|