nixpkgs/pkgs/desktops/lxqt/lxqt-admin/default.nix

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

62 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2024-04-18 17:21:40 +00:00
, stdenv
, fetchFromGitHub
, cmake
, kwindowsystem
, liblxqt
, libqtxdg
2024-04-18 17:21:40 +00:00
, lxqt-build-tools
, polkit-qt-1
, qtsvg
, qttools
, qtwayland
, wrapQtAppsHook
, gitUpdater
}:
2016-10-03 21:52:08 +00:00
2024-04-18 17:21:40 +00:00
stdenv.mkDerivation rec {
2016-10-03 21:52:08 +00:00
pname = "lxqt-admin";
2024-11-07 02:22:14 +00:00
version = "2.1.0";
2016-10-03 21:52:08 +00:00
2017-11-02 01:54:39 +00:00
src = fetchFromGitHub {
owner = "lxqt";
2016-10-03 21:52:08 +00:00
repo = pname;
rev = version;
2024-11-07 02:22:14 +00:00
hash = "sha256-7RyPUv/M8mMoRO+SopFuru+bY9ZwnKz2BkiLz1cW/wg=";
2016-10-03 21:52:08 +00:00
};
nativeBuildInputs = [
cmake
2017-02-25 15:44:29 +00:00
lxqt-build-tools
2023-11-05 20:23:49 +00:00
qttools
2024-04-18 17:21:40 +00:00
wrapQtAppsHook
2016-10-03 21:52:08 +00:00
];
buildInputs = [
2017-02-25 15:44:29 +00:00
kwindowsystem
liblxqt
libqtxdg
2024-04-18 17:21:40 +00:00
polkit-qt-1
qtsvg
qtwayland
2016-10-03 21:52:08 +00:00
];
2019-02-05 23:13:28 +00:00
postPatch = ''
2021-04-16 20:32:40 +00:00
for f in lxqt-admin-{time,user}/CMakeLists.txt; do
2024-04-18 17:21:40 +00:00
substituteInPlace $f --replace-fail \
2021-04-16 20:32:40 +00:00
"\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}" \
"$out/share/polkit-1/actions"
done
2019-02-05 23:13:28 +00:00
'';
2016-10-03 21:52:08 +00:00
passthru.updateScript = gitUpdater { };
meta = with lib; {
homepage = "https://github.com/lxqt/lxqt-admin";
description = "LXQt system administration tool";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
2022-04-14 13:52:15 +00:00
maintainers = teams.lxqt.members;
2016-10-03 21:52:08 +00:00
};
}