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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
2024-04-18 20:21:42 +03:00
, stdenv
, fetchFromGitHub
, cmake
2024-04-18 20:21:42 +03:00
, layer-shell-qt
, libexif
2024-04-18 20:21:42 +03:00
, libfm-qt
2023-11-05 23:23:51 +03:00
, lxqt-build-tools
, lxqt-menu-data
2024-04-18 20:21:42 +03:00
, menu-cache
, pkg-config
, qtbase
, qtimageformats
2024-04-18 20:21:42 +03:00
, qttools
, qtwayland
2024-05-08 23:19:15 +03:00
, qtsvg
2024-04-18 20:21:42 +03:00
, wrapQtAppsHook
, gitUpdater
}:
2016-10-04 01:06:13 +03:00
2024-04-18 20:21:42 +03:00
stdenv.mkDerivation rec {
2016-10-04 01:06:13 +03:00
pname = "pcmanfm-qt";
2024-04-18 20:21:42 +03:00
version = "2.0.0";
2016-10-04 01:06:13 +03:00
2017-11-02 05:00:50 +03:00
src = fetchFromGitHub {
owner = "lxqt";
2016-10-04 01:06:13 +03:00
repo = pname;
rev = version;
2024-04-18 20:21:42 +03:00
hash = "sha256-PyCtcn+QHwX/iy85A3y7Phf8ogdSRrwtXrJYGxrjyLM=";
2016-10-04 01:06:13 +03:00
};
2017-02-19 15:43:43 +03:00
nativeBuildInputs = [
cmake
2021-01-17 05:21:50 +03:00
pkg-config
2023-11-05 23:23:51 +03:00
lxqt-build-tools
qttools
2024-04-18 20:21:42 +03:00
wrapQtAppsHook
2017-02-19 15:43:43 +03:00
];
2016-10-04 01:06:13 +03:00
buildInputs = [
2024-04-18 20:21:42 +03:00
layer-shell-qt
libexif
2024-04-18 20:21:42 +03:00
libfm-qt
2023-11-05 23:23:51 +03:00
lxqt-menu-data
2024-04-18 20:21:42 +03:00
menu-cache
2019-02-06 02:14:23 +03:00
qtbase
qtimageformats # add-on module to support more image file formats
2024-04-18 20:21:42 +03:00
qtwayland
2024-05-08 23:19:15 +03:00
qtsvg
2016-10-04 01:06:13 +03:00
];
passthru.updateScript = gitUpdater { };
2020-05-12 00:11:37 +03:00
postPatch = ''
2024-04-18 20:21:42 +03:00
substituteInPlace config/pcmanfm-qt/lxqt/settings.conf.in --replace-fail @LXQT_SHARE_DIR@ /run/current-system/sw/share/lxqt
2020-05-12 00:11:37 +03:00
'';
meta = with lib; {
homepage = "https://github.com/lxqt/pcmanfm-qt";
description = "File manager and desktop icon manager (Qt port of PCManFM and libfm)";
mainProgram = "pcmanfm-qt";
license = licenses.gpl2Plus;
2016-10-04 01:06:13 +03:00
platforms = with platforms; unix;
2022-04-14 16:52:15 +03:00
maintainers = teams.lxqt.members;
2016-10-04 01:06:13 +03:00
};
}