mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
98 lines
1.9 KiB
Nix
98 lines
1.9 KiB
Nix
{ fetchFromGitHub
|
|
, glib
|
|
, gobject-introspection
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, lib
|
|
, stdenv
|
|
, wrapGAppsHook3
|
|
, libxml2
|
|
, gtk3
|
|
, gvfs
|
|
, cinnamon-desktop
|
|
, xapp
|
|
, libexif
|
|
, json-glib
|
|
, exempi
|
|
, intltool
|
|
, shared-mime-info
|
|
, cinnamon-translations
|
|
, libgsf
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nemo";
|
|
version = "6.2.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-1GJLsUlptwXcZUWIOztskV0nHA9BnPmnVeTgUwJ+QDQ=";
|
|
};
|
|
|
|
patches = [
|
|
# Load extensions from NEMO_EXTENSION_DIR environment variable
|
|
# https://github.com/NixOS/nixpkgs/issues/78327
|
|
./load-extensions-from-env.patch
|
|
];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
cinnamon-desktop
|
|
libxml2
|
|
xapp
|
|
libexif
|
|
exempi
|
|
gvfs
|
|
libgsf
|
|
json-glib
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
ninja
|
|
wrapGAppsHook3
|
|
intltool
|
|
shared-mime-info
|
|
gobject-introspection
|
|
];
|
|
|
|
mesonFlags = [
|
|
# use locales from cinnamon-translations
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
|
];
|
|
|
|
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"
|
|
'';
|
|
|
|
preFixup = ''
|
|
# Used for some non-fd.o icons (e.g. xapp-text-case-symbolic)
|
|
gappsWrapperArgs+=(
|
|
--prefix XDG_DATA_DIRS : "${xapp}/share"
|
|
)
|
|
'';
|
|
|
|
# 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";
|
|
};
|
|
}
|
|
|