01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
59 lines
1 KiB
Nix
59 lines
1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, lxqt-build-tools
|
|
, qtx11extras
|
|
, qttools
|
|
, qtsvg
|
|
, kwindowsystem
|
|
, liblxqt
|
|
, libqtxdg
|
|
, polkit-qt
|
|
, gitUpdater
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "lxqt-admin";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0b6I45O4hUSnhP+IJJV8jesJgWpg3Y53TEaROhGQctY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
lxqt-build-tools
|
|
];
|
|
|
|
buildInputs = [
|
|
qtx11extras
|
|
qttools
|
|
qtsvg
|
|
kwindowsystem
|
|
liblxqt
|
|
libqtxdg
|
|
polkit-qt
|
|
];
|
|
|
|
postPatch = ''
|
|
for f in lxqt-admin-{time,user}/CMakeLists.txt; do
|
|
substituteInPlace $f --replace \
|
|
"\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}" \
|
|
"$out/share/polkit-1/actions"
|
|
done
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/lxqt/lxqt-admin";
|
|
description = "LXQt system administration tool";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.lxqt.members;
|
|
};
|
|
}
|