diff options
author | Bryan Gardiner <bog@khumba.net> | 2019-05-31 19:23:44 -0700 |
---|---|---|
committer | Bryan Gardiner <bog@khumba.net> | 2019-05-31 19:24:41 -0700 |
commit | 61940b89a5646987e8b7a8fe7277ec7534c957b1 (patch) | |
tree | 0a5f26fed775285ad32f5c55a6a6e886d7513234 /pkgs/applications | |
parent | 8b2b0f74137507a77103e829be628976bfef58e8 (diff) | |
download | nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.tar nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.tar.gz nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.tar.bz2 nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.tar.lz nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.tar.xz nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.tar.zst nixlib-61940b89a5646987e8b7a8fe7277ec7534c957b1.zip |
filezilla: add wrapper to set necessary FZ_DATADIR
Filezilla fails to start currently, with the following message being shown in a lone dialog before the program exits: > Could not find the resource files for FileZilla, closing FileZilla. > You can set the data directory of FileZilla using the '--datadir > <custompath>' commandline option or by setting the FZ_DATADIR > environment variable. This commit adds a wrapper for the filezilla binary to set the environment variable to the package root, which fixes the issue.
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/ftp/filezilla/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/networking/ftp/filezilla/default.nix b/pkgs/applications/networking/ftp/filezilla/default.nix index 49ac1d26dda6..acddb31f19b1 100644 --- a/pkgs/applications/networking/ftp/filezilla/default.nix +++ b/pkgs/applications/networking/ftp/filezilla/default.nix @@ -1,5 +1,7 @@ { stdenv, fetchurl, dbus, gnutls, wxGTK30, libidn, tinyxml, gettext -, pkgconfig, xdg_utils, gtk2, sqlite, pugixml, libfilezilla, nettle }: +, pkgconfig, xdg_utils, gtk2, sqlite, pugixml, libfilezilla, nettle +, makeWrapper +}: let version = "3.31.0"; in stdenv.mkDerivation { @@ -17,7 +19,11 @@ stdenv.mkDerivation { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ dbus gnutls wxGTK30 libidn tinyxml gettext xdg_utils gtk2 sqlite - pugixml libfilezilla nettle ]; + pugixml libfilezilla nettle makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/filezilla --set FZ_DATADIR $out + ''; meta = with stdenv.lib; { homepage = https://filezilla-project.org/; |