mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
49 lines
930 B
Nix
49 lines
930 B
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, qtbase
|
|
, qtsvg
|
|
, lxqt-build-tools
|
|
, gitUpdater
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "libqtxdg";
|
|
version = "3.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "b3XR0Tn/roiCjNGb3EMf4ilECNaUjGYi11ykVBppBuc=";
|
|
};
|
|
|
|
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 = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/lxqt/libqtxdg";
|
|
description = "Qt implementation of freedesktop.org xdg specs";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.lxqt.members;
|
|
};
|
|
}
|