file-roller: fixed fatal error occuring when extracting zip files
This commit is contained in:
parent
02a7be6aba
commit
b209b81d7a
1 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
{ lib, stdenv, fetchurl, glib, gtk3, meson, ninja, pkg-config, gnome3, gettext, itstool, libxml2, libarchive
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "file-roller";
|
pname = "file-roller";
|
||||||
|
@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja gettext itstool pkg-config libxml2 python3 wrapGAppsHook glibcLocales desktop-file-utils ];
|
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";
|
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
|
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 = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
packageName = "file-roller";
|
packageName = "file-roller";
|
||||||
|
|
Loading…
Reference in a new issue