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-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, cinnamon-desktop
|
|
|
|
, xapps
|
|
|
|
, 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";
|
2021-06-01 10:57:12 +00:00
|
|
|
version = "5.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# TODO: add plugins support (see https://github.com/NixOS/nixpkgs/issues/78327)
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-01 10:57:12 +00:00
|
|
|
sha256 = "07n9p93iyrzb7636qqwknq8dd3im1y6wb9jfvif96mbvvdwsnfyz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libnotify
|
|
|
|
cinnamon-desktop
|
|
|
|
libxml2
|
|
|
|
xapps
|
|
|
|
libexif
|
|
|
|
exempi
|
|
|
|
gobject-introspection
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
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
|
|
|
];
|
|
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|