2023-04-12 12:48:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qtxmlpatterns, qtsvg, qtscxml
|
|
|
|
, qtquick1, libGLU }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-04-12 12:48:02 +00:00
|
|
|
pname = "qxmledit";
|
|
|
|
version = "0.9.17";
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lbellonda";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-UzN5U+aC/uKokSdeUG2zv8+mkaH4ndYZ0sfzkpQ3l1M=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase qtxmlpatterns qtsvg qtscxml qtquick1 libGLU ];
|
|
|
|
|
|
|
|
qmakeFlags = [ "CONFIG+=release" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2023-04-12 12:48:02 +00:00
|
|
|
description = "Simple XML editor based on qt libraries";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/qxmledit";
|
|
|
|
license = licenses.lgpl2;
|
2023-04-12 12:48:02 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
changelog = "https://github.com/lbellonda/qxmledit/blob/${version}/NEWS";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|