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