2017-02-19 13:43:43 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, qt5, lxqt, libfm, menu-cache, lxmenu-data }:
|
2016-10-04 00:06:13 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "pcmanfm-qt";
|
2018-07-04 05:33:09 +02:00
|
|
|
version = "0.13.0";
|
2016-10-04 00:06:13 +02:00
|
|
|
|
2017-11-02 03:00:50 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-05-22 03:24:38 +02:00
|
|
|
owner = "lxqt";
|
2016-10-04 00:06:13 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-07-04 05:33:09 +02:00
|
|
|
sha256 = "0xnhdxx45fmbi5dqic3j2f7yq01s0xysimafj5zqs0a29zw3i4m0";
|
2016-10-04 00:06:13 +02:00
|
|
|
};
|
|
|
|
|
2017-02-19 13:43:43 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
lxqt.lxqt-build-tools
|
|
|
|
];
|
2016-10-04 00:06:13 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt5.qtbase
|
|
|
|
qt5.qttools
|
|
|
|
qt5.qtx11extras
|
|
|
|
lxqt.libfm-qt
|
|
|
|
libfm
|
|
|
|
menu-cache
|
|
|
|
lxmenu-data
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ];
|
|
|
|
|
2017-11-02 03:00:50 +01:00
|
|
|
postPatch = ''
|
|
|
|
for dir in autostart config; do
|
|
|
|
substituteInPlace $dir/CMakeLists.txt \
|
|
|
|
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-10-04 00:06:13 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "File manager and desktop icon manager (Qt port of PCManFM and libfm)";
|
2018-05-22 03:24:38 +02:00
|
|
|
homepage = https://github.com/lxqt/pcmanfm-qt;
|
2016-10-04 00:06:13 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = with platforms; unix;
|
2017-02-19 13:43:43 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2016-10-04 00:06:13 +02:00
|
|
|
};
|
|
|
|
}
|