nixpkgs/pkgs/desktops/lxqt/core/pcmanfm-qt/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

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