Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gitUpdater,
|
|
kwindowsystem,
|
|
libXScrnSaver,
|
|
libqtxdg,
|
|
lxqt-build-tools,
|
|
polkit-qt-1,
|
|
qtsvg,
|
|
qttools,
|
|
wrapQtAppsHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "liblxqt";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = "liblxqt";
|
|
rev = version;
|
|
hash = "sha256-04t6wssTuSKlqSuUTmcDU66NVGikWh7p2irWBngN494=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
lxqt-build-tools
|
|
qttools
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
kwindowsystem
|
|
libXScrnSaver
|
|
libqtxdg
|
|
polkit-qt-1
|
|
qtsvg
|
|
];
|
|
|
|
# convert name of wrapped binary, e.g. .lxqt-whatever-wrapped to the original name, e.g. lxqt-whatever so binaries can find their resources
|
|
patches = [ ./fix-application-path.patch ];
|
|
|
|
postPatch = ''
|
|
# https://github.com/NixOS/nixpkgs/issues/119766
|
|
substituteInPlace lxqtbacklight/linux_backend/driver/libbacklight_backend.c \
|
|
--replace-fail "pkexec lxqt-backlight_backend" "pkexec $out/bin/lxqt-backlight_backend"
|
|
|
|
sed -i "s|\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}|''${out}/share/polkit-1/actions|" CMakeLists.txt
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Core utility library for all LXQt components";
|
|
mainProgram = "lxqt-backlight_backend";
|
|
homepage = "https://github.com/lxqt/liblxqt";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux;
|
|
teams = [ teams.lxqt ];
|
|
};
|
|
}
|