2018-02-24 18:23:58 -08:00
|
|
|
{ pkgs, fetchFromGitHub, stdenv, gtk3, udev, desktop-file-utils
|
|
|
|
, shared-mime-info, intltool, pkgconfig, wrapGAppsHook, ffmpegthumbnailer
|
2018-07-20 17:44:44 -07:00
|
|
|
, jmtpfs, ifuseSupport ? false, ifuse ? null, lsof, udisks2 }:
|
2014-01-11 05:38:06 -08:00
|
|
|
|
2015-05-04 16:58:33 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "spacefm";
|
2018-03-18 11:19:14 -07:00
|
|
|
version = "1.0.6";
|
2014-01-11 05:38:06 -08:00
|
|
|
|
2015-11-21 08:50:32 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IgnorantGuru";
|
|
|
|
repo = "spacefm";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2018-03-18 11:19:14 -07:00
|
|
|
sha256 = "089r6i40lxcwzp60553b18f130asspnzqldlpii53smz52kvpirx";
|
2014-01-11 05:38:06 -08:00
|
|
|
};
|
|
|
|
|
2020-01-23 01:40:49 -08:00
|
|
|
patches = [ ./glibc-fix.patch ];
|
|
|
|
|
2015-05-04 16:58:33 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-bash-path=${pkgs.bash}/bin/bash"
|
|
|
|
];
|
|
|
|
|
2015-11-21 08:50:32 -08:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --sysconfdir=$out/etc"
|
2014-01-18 02:39:30 -08:00
|
|
|
'';
|
2014-01-11 05:38:06 -08:00
|
|
|
|
2016-07-01 08:40:21 -07:00
|
|
|
postInstall = ''
|
|
|
|
rm -f $out/etc/spacefm/spacefm.conf
|
2018-02-15 05:22:29 -08:00
|
|
|
ln -s /etc/spacefm/spacefm.conf $out/etc/spacefm/spacefm.conf
|
2016-07-01 08:40:21 -07:00
|
|
|
'';
|
|
|
|
|
2018-03-11 05:23:31 -07:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
|
|
|
'';
|
|
|
|
|
2017-09-14 12:24:37 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-07-01 08:40:21 -07:00
|
|
|
buildInputs = [
|
2018-02-24 18:23:58 -08:00
|
|
|
gtk3 udev desktop-file-utils shared-mime-info intltool
|
2018-02-15 05:22:29 -08:00
|
|
|
wrapGAppsHook ffmpegthumbnailer jmtpfs lsof udisks2
|
2017-02-26 10:27:52 -08:00
|
|
|
] ++ (if ifuseSupport then [ ifuse ] else []);
|
|
|
|
# Introduced because ifuse doesn't build due to CVEs in libplist
|
|
|
|
# Revert when libplist builds again…
|
2015-11-21 08:50:32 -08:00
|
|
|
|
2015-05-04 16:58:33 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A multi-panel tabbed file manager";
|
2015-11-21 08:50:32 -08:00
|
|
|
longDescription = ''
|
|
|
|
Multi-panel tabbed file and desktop manager for Linux
|
2015-05-04 16:58:33 -07:00
|
|
|
with built-in VFS, udev- or HAL-based device manager,
|
|
|
|
customizable menu system, and bash integration
|
2015-11-21 08:50:32 -08:00
|
|
|
'';
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://ignorantguru.github.io/spacefm/";
|
2015-05-04 16:58:33 -07:00
|
|
|
platforms = platforms.linux;
|
2016-07-01 08:40:21 -07:00
|
|
|
license = licenses.gpl3Plus;
|
2015-11-21 08:50:32 -08:00
|
|
|
maintainers = with maintainers; [ jagajaga obadz ];
|
2014-01-11 05:38:06 -08:00
|
|
|
};
|
|
|
|
}
|