mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtx11extras,
|
|
qttools, qtsvg, libqtxdg, polkit-qt, kwindowsystem, xorg }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "liblxqt";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1lbvnx6gg15k7fy1bnv5sjji659f603glblcl8c9psh0m1cjdbll";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
lxqt-build-tools
|
|
];
|
|
|
|
buildInputs = [
|
|
qtx11extras
|
|
qttools
|
|
qtsvg
|
|
polkit-qt
|
|
kwindowsystem
|
|
libqtxdg
|
|
xorg.libXScrnSaver
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DPULL_TRANSLATIONS=NO"
|
|
"-DLXQT_ETC_XDG_DIR=/run/current-system/sw/etc/xdg"
|
|
];
|
|
|
|
patchPhase = ''
|
|
sed -i 's|set(LXQT_SHARE_DIR .*)|set(LXQT_SHARE_DIR "/run/current-system/sw/share/lxqt")|' CMakeLists.txt
|
|
sed -i "s|\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}|''${out}/share/polkit-1/actions|" CMakeLists.txt
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Core utility library for all LXQt components";
|
|
homepage = https://github.com/lxqt/liblxqt;
|
|
license = licenses.lgpl21Plus;
|
|
platforms = with platforms; unix;
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|