a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
87 lines
1.6 KiB
Nix
87 lines
1.6 KiB
Nix
{ fetchFromGitHub
|
|
, fetchpatch
|
|
, glib
|
|
, gobject-introspection
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, lib
|
|
, stdenv
|
|
, wrapGAppsHook
|
|
, libxml2
|
|
, gtk3
|
|
, gvfs
|
|
, cinnamon-desktop
|
|
, xapp
|
|
, libexif
|
|
, exempi
|
|
, intltool
|
|
, shared-mime-info
|
|
, cinnamon-translations
|
|
, libgsf
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nemo";
|
|
version = "5.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-ztx3Y+n9Bpzuz06mbkis3kdlM/0JrOaMDbRF5glzkDE=";
|
|
};
|
|
|
|
patches = [
|
|
# Load extensions from NEMO_EXTENSION_DIR environment variable
|
|
# https://github.com/NixOS/nixpkgs/issues/78327
|
|
./load-extensions-from-env.patch
|
|
|
|
# Don't populate nemo actions from /run/current-system/sw/share
|
|
# They should only be loaded exactly once from $out/share
|
|
# https://github.com/NixOS/nixpkgs/issues/190781
|
|
./fix-nemo-actions-duplicate-menu-items.patch
|
|
];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
cinnamon-desktop
|
|
libxml2
|
|
xapp
|
|
libexif
|
|
exempi
|
|
gvfs
|
|
gobject-introspection
|
|
libgsf
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
ninja
|
|
wrapGAppsHook
|
|
intltool
|
|
shared-mime-info
|
|
];
|
|
|
|
mesonFlags = [
|
|
# use locales from cinnamon-translations
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
|
];
|
|
|
|
# Taken from libnemo-extension.pc.
|
|
passthru.extensiondir = "lib/nemo/extensions-3.0";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/linuxmint/nemo";
|
|
description = "File browser for Cinnamon";
|
|
license = [ licenses.gpl2 licenses.lgpl2 ];
|
|
platforms = platforms.linux;
|
|
maintainers = teams.cinnamon.members;
|
|
mainProgram = "nemo";
|
|
};
|
|
}
|
|
|