mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:26:02 +00:00
a61bd1e42d
libqtxdg fails to build on darwin. LXQt is a DE for linux so assume darwin is not supported. The platform for some packages that may be useful outside of LXQt (like pcmanfm-qt, lximage-qt and others) and do not depend on libqtxdg are not being changed.
34 lines
848 B
Nix
34 lines
848 B
Nix
{ lib, mkDerivation, fetchFromGitHub, cmake, qtbase, qtsvg, lxqt-build-tools }:
|
|
|
|
mkDerivation rec {
|
|
pname = "libqtxdg";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "16jqnpc740a6phq7vcgy85hl7253yzyw4m5h71r0vijk79ir73b5";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake lxqt-build-tools ];
|
|
|
|
buildInputs = [ qtbase qtsvg ];
|
|
|
|
preConfigure = ''
|
|
cmakeFlagsArray+=(
|
|
"-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=$out/$qtPluginPrefix"
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Qt implementation of freedesktop.org xdg specs";
|
|
homepage = https://github.com/lxqt/libqtxdg;
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|