1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gettext,
7 gtk-layer-shell,
8 gtk3,
9 libnotify,
10 libxml2,
11 libexif,
12 exempi,
13 mate-desktop,
14 hicolor-icon-theme,
15 wayland,
16 wrapGAppsHook3,
17 mateUpdateScript,
18}:
19
20stdenv.mkDerivation rec {
21 pname = "caja";
22 version = "1.28.0";
23
24 src = fetchurl {
25 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
26 sha256 = "HjAUzhRVgX7C73TQnv37aDXYo3LtmhbvtZGe97ghlXo=";
27 };
28
29 nativeBuildInputs = [
30 pkg-config
31 gettext
32 wrapGAppsHook3
33 ];
34
35 buildInputs = [
36 gtk-layer-shell
37 gtk3
38 libnotify
39 libxml2
40 libexif
41 exempi
42 mate-desktop
43 hicolor-icon-theme
44 wayland
45 ];
46
47 configureFlags = [ "--disable-update-mimedb" ];
48
49 enableParallelBuilding = true;
50
51 passthru.updateScript = mateUpdateScript { inherit pname; };
52
53 meta = with lib; {
54 description = "File manager for the MATE desktop";
55 homepage = "https://mate-desktop.org";
56 license = with licenses; [
57 gpl2Plus
58 lgpl2Plus
59 ];
60 platforms = platforms.unix;
61 teams = [ teams.mate ];
62 };
63}