file-roller: fixed fatal error occuring when extracting zip files

This commit is contained in:
Daniel Șerbănescu 2021-04-28 15:23:47 +02:00 committed by Jan Tojnar
parent 02a7be6aba
commit b209b81d7a
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, glib, gtk3, meson, ninja, pkg-config, gnome3, gettext, itstool, libxml2, libarchive
, file, json-glib, python3, wrapGAppsHook, desktop-file-utils, libnotify, nautilus, glibcLocales }:
, file, json-glib, python3, wrapGAppsHook, desktop-file-utils, libnotify, nautilus, glibcLocales
, unzip, cpio }:
stdenv.mkDerivation rec {
pname = "file-roller";
@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja gettext itstool pkg-config libxml2 python3 wrapGAppsHook glibcLocales desktop-file-utils ];
buildInputs = [ glib gtk3 json-glib libarchive file gnome3.adwaita-icon-theme libnotify nautilus ];
buildInputs = [ glib gtk3 json-glib libarchive file gnome3.adwaita-icon-theme libnotify nautilus cpio ];
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
@ -24,6 +25,12 @@ stdenv.mkDerivation rec {
patchShebangs data/set-mime-type-entry.py
'';
postFixup = ''
# Workaround because of https://gitlab.gnome.org/GNOME/file-roller/issues/40
wrapProgram "$out/bin/file-roller" \
--prefix PATH : ${lib.makeBinPath [ unzip ]}
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "file-roller";