nixpkgs-suyu/pkgs/desktops/lxqt/libqtxdg/default.nix
2022-04-17 21:50:02 -03:00

49 lines
979 B
Nix

{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, qtbase
, qtsvg
, lxqt-build-tools
, lxqtUpdateScript
}:
mkDerivation rec {
pname = "libqtxdg";
version = "3.9.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "llE4OxI4I/n0P8Pv5tKT3tXM7IfD3VMQSxdaLkBJ4Gk=";
};
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 ];
};
}