2016-10-03 23:43:06 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, qt5 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libqtxdg-${version}";
|
2017-11-02 02:50:28 +01:00
|
|
|
version = "3.1.0";
|
2016-10-03 23:43:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxde";
|
|
|
|
repo = "libqtxdg";
|
|
|
|
rev = version;
|
2017-11-02 02:50:28 +01:00
|
|
|
sha256 = "03kdrx5sgrl93yband87n30i0k2mv6dknwdw2adz45j5z9rhd3z6";
|
2016-10-03 23:43:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qt5.qtbase qt5.qtsvg ];
|
|
|
|
|
2017-11-02 02:50:28 +01:00
|
|
|
preConfigure = ''
|
2018-04-03 22:54:38 +02:00
|
|
|
cmakeFlagsArray+=(
|
|
|
|
"-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=$out/$qtPluginPrefix"
|
|
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
)
|
2017-11-02 02:50:28 +01:00
|
|
|
'';
|
|
|
|
|
2016-10-03 23:43:06 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt implementation of freedesktop.org xdg specs";
|
|
|
|
homepage = https://github.com/lxde/libqtxdg;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = with platforms; unix;
|
2017-11-02 02:50:28 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2016-10-03 23:43:06 +02:00
|
|
|
};
|
|
|
|
}
|