depot/third_party/nixpkgs/pkgs/desktops/lxqt/libqtxdg/default.nix

50 lines
987 B
Nix
Raw Normal View History

{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, qtbase
, qtsvg
, lxqt-build-tools
, lxqtUpdateScript
}:
mkDerivation rec {
pname = "libqtxdg";
version = "3.8.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "14jrzwdmhgn6bcggmhxx5rdapjzm93cfkjjls3nii1glnkwzncxz";
};
nativeBuildInputs = [
cmake
lxqt-build-tools
];
buildInputs = [
qtbase
qtsvg
];
preConfigure = ''
cmakeFlagsArray+=(
"-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=$out/$qtPluginPrefix/iconengines"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
)
'';
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
meta = with lib; {
homepage = "https://github.com/lxqt/libqtxdg";
description = "Qt implementation of freedesktop.org xdg specs";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}