2021-05-07 21:18:14 +00:00
|
|
|
{ lib, stdenv, fetchurl, glib, gtk3, meson, ninja, pkg-config, gnome, gettext, itstool, libxml2, libarchive
|
2021-04-28 13:23:47 +00:00
|
|
|
, file, json-glib, python3, wrapGAppsHook, desktop-file-utils, libnotify, nautilus, glibcLocales
|
|
|
|
, unzip, cpio }:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "file-roller";
|
2021-05-02 17:10:27 +00:00
|
|
|
version = "3.40.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-05-02 17:10:27 +00:00
|
|
|
sha256 = "039w1dcpa5ypmv6sm634alk9vbcdkyvy595vkh5gn032jsiqca2a";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-03-14 00:39:32 +00:00
|
|
|
LANG = "en_US.UTF-8"; # postinstall.py
|
|
|
|
|
2021-01-17 02:21:50 +00:00
|
|
|
nativeBuildInputs = [ meson ninja gettext itstool pkg-config libxml2 python3 wrapGAppsHook glibcLocales desktop-file-utils ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-05-07 21:18:14 +00:00
|
|
|
buildInputs = [ glib gtk3 json-glib libarchive file gnome.adwaita-icon-theme libnotify nautilus cpio ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-04-26 20:59:34 +00:00
|
|
|
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-14 00:39:32 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x postinstall.py # patchShebangs requires executable file
|
|
|
|
patchShebangs postinstall.py
|
2018-09-05 00:43:48 +00:00
|
|
|
patchShebangs data/set-mime-type-entry.py
|
2018-03-14 00:39:32 +00:00
|
|
|
'';
|
|
|
|
|
2021-09-14 15:17:26 +00:00
|
|
|
preFixup = ''
|
2021-04-28 13:23:47 +00:00
|
|
|
# Workaround because of https://gitlab.gnome.org/GNOME/file-roller/issues/40
|
2021-09-14 15:17:26 +00:00
|
|
|
gappsWrapperArgs+=(
|
2021-04-28 13:23:47 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ unzip ]}
|
2021-09-14 15:17:26 +00:00
|
|
|
)
|
2021-04-28 13:23:47 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-14 00:39:32 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-14 00:39:32 +00:00
|
|
|
packageName = "file-roller";
|
2021-05-07 21:18:14 +00:00
|
|
|
attrPath = "gnome.file-roller";
|
2018-03-14 00:39:32 +00:00
|
|
|
};
|
|
|
|
};
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/FileRoller";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Archive manager for the GNOME desktop environment";
|
2018-03-14 00:39:32 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
}
|