nixpkgs/pkgs/desktops/cinnamon/nemo/default.nix

73 lines
1.3 KiB
Nix
Raw Normal View History

2020-01-20 01:56:38 +00:00
{ fetchFromGitHub
, fetchpatch
, glib
, gobject-introspection
, meson
, ninja
2021-01-17 02:21:50 +00:00
, pkg-config
, lib, stdenv
2020-01-20 01:56:38 +00:00
, wrapGAppsHook
, libxml2
, gtk3
, libnotify
, cinnamon-desktop
, xapps
, libexif
, exempi
, intltool
, shared-mime-info
, cinnamon-translations
2020-01-20 01:56:38 +00:00
}:
stdenv.mkDerivation rec {
pname = "nemo";
2021-04-22 21:05:09 +00:00
version = "4.8.6";
2020-01-20 01:56:38 +00:00
# TODO: add plugins support (see https://github.com/NixOS/nixpkgs/issues/78327)
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
2021-04-22 21:05:09 +00:00
hash = "sha256-OUv7l+klu5l1Y7m+iHiq/dDyxH3/hT4k7F9gDuUiGds=";
2020-01-20 01:56:38 +00:00
};
outputs = [ "out" "dev" ];
buildInputs = [
glib
gtk3
libnotify
cinnamon-desktop
libxml2
xapps
libexif
exempi
gobject-introspection
];
nativeBuildInputs = [
meson
2021-01-17 02:21:50 +00:00
pkg-config
2020-01-20 01:56:38 +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"
# use locales from cinnamon-translations
"--localedir=${cinnamon-translations}/share/locale"
2020-01-20 01:56:38 +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;
maintainers = teams.cinnamon.members;
2020-01-20 01:56:38 +00:00
};
}