Files
nixpkgs/pkgs/desktops/mate/engrampa/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
gettext,
itstool,
libxml2,
caja,
gtk3,
hicolor-icon-theme,
json-glib,
mate-desktop,
wrapGAppsHook3,
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.2";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-Hpl3wjdFv4hDo38xUXHZr5eBSglxrqw9d08BdlCsCe8=";
};
nativeBuildInputs = [
pkg-config
gettext
itstool
libxml2 # for xmllint
wrapGAppsHook3
];
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;
teams = [ teams.mate ];
};
}