nixpkgs/pkgs/applications/misc/spacefm/default.nix

54 lines
1.6 KiB
Nix
Raw Normal View History

{ pkgs, fetchFromGitHub, stdenv, gtk3, udev, desktop-file-utils
, shared-mime-info, intltool, pkgconfig, wrapGAppsHook, ffmpegthumbnailer
2018-02-15 13:22:29 +00:00
, jmtpfs, ifuseSupport ? false, ifuse ? null, lsof, udisks2, hicolor-icon-theme, adwaita-icon-theme }:
2014-01-11 13:38:06 +00:00
2015-05-04 23:58:33 +00:00
stdenv.mkDerivation rec {
name = "spacefm-${version}";
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";
rev = "${version}";
sha256 = "089r6i40lxcwzp60553b18f130asspnzqldlpii53smz52kvpirx";
2014-01-11 13:38:06 +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-11 13:38:06 +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
'';
preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
gtk3 udev desktop-file-utils shared-mime-info intltool
2018-02-15 13:22:29 +00:00
wrapGAppsHook ffmpegthumbnailer jmtpfs lsof udisks2
] ++ (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
2015-05-04 23:58:33 +00:00
meta = with stdenv.lib; {
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
'';
2015-05-04 23:58:33 +00:00
homepage = http://ignorantguru.github.io/spacefm/;
platforms = platforms.linux;
license = licenses.gpl3Plus;
2015-11-21 16:50:32 +00:00
maintainers = with maintainers; [ jagajaga obadz ];
2014-01-11 13:38:06 +00:00
};
}