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

48 lines
1.1 KiB
Nix
Raw Normal View History

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