1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ lib
, stdenv
, fetchurl
, pkg-config
, gettext
, itstool
, libxml2
, caja
, gtk3
, hicolor-icon-theme
, json-glib
, mate-desktop
, wrapGAppsHook
, mateUpdateScript
# can be defaulted to true once switch to meson
, withMagic ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, file
}:
stdenv.mkDerivation rec {
pname = "engrampa";
version = "1.28.1";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "nFxMm8+LCO6qjydVONJLTJVQidWK7AMx6JwCuE2FOGo=";
};
nativeBuildInputs = [
pkg-config
gettext
itstool
libxml2 # for xmllint
wrapGAppsHook
];
buildInputs = [
caja
gtk3
hicolor-icon-theme
json-glib
mate-desktop
] ++ lib.optionals withMagic [
file
];
configureFlags = [
"--with-cajadir=$$out/lib/caja/extensions-2.0"
] ++ lib.optionals withMagic [
"--enable-magic"
];
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Archive Manager for MATE";
mainProgram = "engrampa";
homepage = "https://mate-desktop.org";
license = with licenses; [ gpl2Plus lgpl2Plus fdl11Plus ];
platforms = platforms.unix;
maintainers = teams.mate.members;
};
}
|