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

48 lines
1.1 KiB
Nix
Raw Normal View History

2018-05-22 15:54:12 +02:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, lxqt-build-tools, qt5, libfm-qt, menu-cache, lxmenu-data }:
2016-10-04 00:06:13 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "pcmanfm-qt";
version = "0.13.0";
2016-10-04 00:06:13 +02:00
2017-11-02 03:00:50 +01:00
src = fetchFromGitHub {
owner = "lxqt";
2016-10-04 00:06:13 +02:00
repo = pname;
rev = version;
sha256 = "0xnhdxx45fmbi5dqic3j2f7yq01s0xysimafj5zqs0a29zw3i4m0";
2016-10-04 00:06:13 +02:00
};
2017-02-19 13:43:43 +01:00
nativeBuildInputs = [
cmake
pkgconfig
2018-05-22 15:54:12 +02:00
lxqt-build-tools
2017-02-19 13:43:43 +01:00
];
2016-10-04 00:06:13 +02:00
buildInputs = [
qt5.qtbase
qt5.qttools
qt5.qtx11extras
2018-05-22 15:54:12 +02:00
libfm-qt
libfm-qt
2016-10-04 00:06:13 +02:00
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)";
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
};
}