2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub,
|
2020-03-22 16:01:49 +01:00
|
|
|
qmake, qtbase, qtxmlpatterns, qtsvg, qtscxml, qtquick1, libGLU }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qxmledit-${version}" ;
|
|
|
|
version = "0.9.15" ;
|
2021-01-15 14:21:58 +01:00
|
|
|
src = fetchFromGitHub ( lib.importJSON ./qxmledit.json ) ;
|
2020-03-22 16:01:49 +01:00
|
|
|
nativeBuildInputs = [ qmake ] ;
|
|
|
|
buildInputs = [ qtbase qtxmlpatterns qtsvg qtscxml qtquick1 libGLU ] ;
|
|
|
|
qmakeFlags = [ "CONFIG+=release" ] ;
|
|
|
|
outputs = [ "out" "doc" ] ;
|
|
|
|
|
|
|
|
preConfigure = ''
|
2020-04-01 20:07:57 +02:00
|
|
|
export QXMLEDIT_INST_DATA_DIR="$out/share/data"
|
|
|
|
export QXMLEDIT_INST_TRANSLATIONS_DIR="$out/share/i18n"
|
|
|
|
export QXMLEDIT_INST_INCLUDE_DIR="$out/include"
|
|
|
|
export QXMLEDIT_INST_DIR="$out/bin"
|
|
|
|
export QXMLEDIT_INST_LIB_DIR="$out/lib"
|
|
|
|
export QXMLEDIT_INST_DOC_DIR="$doc"
|
|
|
|
'';
|
2020-03-22 16:01:49 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-22 16:01:49 +01:00
|
|
|
description = "Simple XML editor based on qt libraries" ;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/qxmledit";
|
2020-03-22 16:01:49 +01:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
} ;
|
|
|
|
}
|