nixpkgs-suyu/pkgs/desktops/lxqt/liblxqt/default.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, lxqt-build-tools
, qtx11extras
, qttools
, qtsvg
, libqtxdg
, polkit-qt
, kwindowsystem
, xorg
, lxqtUpdateScript
}:
2016-10-03 23:46:35 +02:00
mkDerivation rec {
2016-10-03 23:46:35 +02:00
pname = "liblxqt";
2021-11-05 18:35:00 +01:00
version = "1.0.0";
2016-10-03 23:46:35 +02:00
src = fetchFromGitHub {
owner = "lxqt";
2016-10-03 23:46:35 +02:00
repo = pname;
rev = version;
2021-11-05 18:35:00 +01:00
sha256 = "08cqvq99pvz8lz13273hlpv8160r6zyz4f7h4kl1g8xdga7m45gr";
2016-10-03 23:46:35 +02:00
};
nativeBuildInputs = [
cmake
2017-02-25 16:44:29 +01:00
lxqt-build-tools
2016-10-03 23:46:35 +02:00
];
buildInputs = [
2017-02-25 16:44:29 +01:00
qtx11extras
qttools
qtsvg
2018-05-22 15:52:54 +02:00
polkit-qt
2017-02-25 16:44:29 +01:00
kwindowsystem
libqtxdg
2016-10-03 23:46:35 +02:00
xorg.libXScrnSaver
];
# 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 ];
2019-02-06 00:13:21 +01:00
postPatch = ''
# https://github.com/NixOS/nixpkgs/issues/119766
substituteInPlace lxqtbacklight/linux_backend/driver/libbacklight_backend.c \
--replace "pkexec lxqt-backlight_backend" "pkexec $out/bin/lxqt-backlight_backend"
2018-05-22 15:52:54 +02:00
sed -i "s|\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}|''${out}/share/polkit-1/actions|" CMakeLists.txt
2016-10-03 23:46:35 +02:00
'';
2018-05-22 15:52:54 +02:00
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
meta = with lib; {
2016-10-03 23:46:35 +02:00
description = "Core utility library for all LXQt components";
homepage = "https://github.com/lxqt/liblxqt";
2016-10-03 23:46:35 +02:00
license = licenses.lgpl21Plus;
platforms = platforms.linux;
2017-02-19 12:02:25 +01:00
maintainers = with maintainers; [ romildo ];
2016-10-03 23:46:35 +02:00
};
}