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";
2017-11-02 02:00:50 +00:00
version = "0.12.0";
2016-10-03 23:06:13 +01:00
2017-11-02 02:00:50 +00:00
src = fetchFromGitHub {
2016-10-03 23:06:13 +01:00
owner = "lxde";
repo = pname;
rev = version;
2017-11-02 02:00:50 +00:00
sha256 = "050h5w1wph35l5m69qbxzvc96y7y0bg1m7flqdadrp688pbnzcxb";
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/lxde/pcmanfm-qt;
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
};
}