2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, mate
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, wrapGAppsHook
|
|
|
|
, mateUpdateScript
|
2023-08-22 20:05:09 +00:00
|
|
|
# can be defaulted to true once engrampa builds with meson (version > 1.27.0)
|
|
|
|
, withMagic ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, file
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "engrampa";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.26.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "8CJBB6ek6epjCcnniqX6rIAsTPcqSawoOqnnrh6KbEo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
2023-08-22 20:05:09 +00:00
|
|
|
libxml2 # for xmllint
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
mate.caja
|
|
|
|
hicolor-icon-theme
|
|
|
|
mate.mate-desktop
|
2023-08-22 20:05:09 +00:00
|
|
|
] ++ lib.optionals withMagic [
|
|
|
|
file
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-cajadir=$$out/lib/caja/extensions-2.0"
|
2023-08-22 20:05:09 +00:00
|
|
|
] ++ lib.optionals withMagic [
|
2020-10-07 09:15:18 +00:00
|
|
|
"--enable-magic"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Archive Manager for MATE";
|
|
|
|
homepage = "https://mate-desktop.org";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus fdl11Plus ];
|
|
|
|
platforms = platforms.unix;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = teams.mate.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|