From a01e8b740e03ed5808ea8a59da8b13e62942bc66 Mon Sep 17 00:00:00 2001 From: Aleksey Uimanov Date: Sun, 22 Mar 2020 20:01:49 +0500 Subject: qxmledit: init at 0.9.15 --- pkgs/applications/editors/qxmledit/default.nix | 28 ++++++++++++++++++++++ pkgs/applications/editors/qxmledit/qxmledit.json | 6 +++++ pkgs/development/libraries/qt-5/5.12/default.nix | 1 + .../development/libraries/qt-5/modules/qtscxml.nix | 7 ++++++ pkgs/top-level/all-packages.nix | 2 ++ 5 files changed, 44 insertions(+) create mode 100644 pkgs/applications/editors/qxmledit/default.nix create mode 100644 pkgs/applications/editors/qxmledit/qxmledit.json create mode 100644 pkgs/development/libraries/qt-5/modules/qtscxml.nix diff --git a/pkgs/applications/editors/qxmledit/default.nix b/pkgs/applications/editors/qxmledit/default.nix new file mode 100644 index 000000000000..131c015d1c15 --- /dev/null +++ b/pkgs/applications/editors/qxmledit/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, + qmake, qtbase, qtxmlpatterns, qtsvg, qtscxml, qtquick1, libGLU }: + +stdenv.mkDerivation rec { + name = "qxmledit-${version}" ; + version = "0.9.15" ; + src = fetchFromGitHub ( stdenv.lib.importJSON ./qxmledit.json ) ; + nativeBuildInputs = [ qmake ] ; + buildInputs = [ qtbase qtxmlpatterns qtsvg qtscxml qtquick1 libGLU ] ; + qmakeFlags = [ "CONFIG+=release" ] ; + outputs = [ "out" "doc" ] ; + + 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" +''; + + meta = with stdenv.lib; { + description = "Simple XML editor based on qt libraries" ; + homepage = https://sourceforge.net/projects/qxmledit; + license = licenses.lgpl2; + platforms = platforms.all; + } ; +} diff --git a/pkgs/applications/editors/qxmledit/qxmledit.json b/pkgs/applications/editors/qxmledit/qxmledit.json new file mode 100644 index 000000000000..3b50532d6a0d --- /dev/null +++ b/pkgs/applications/editors/qxmledit/qxmledit.json @@ -0,0 +1,6 @@ +{ + "owner": "lbellonda", + "repo": "qxmledit", + "rev": "6136dca50ceb3b4447c91a7a18dcf84785ea11d1", + "sha256": "1wcnphalwf0a5gz9r44jgk8wcv1w2qipbwjkbzkra2kxanxns834" +} \ No newline at end of file diff --git a/pkgs/development/libraries/qt-5/5.12/default.nix b/pkgs/development/libraries/qt-5/5.12/default.nix index c0bba5e5c010..ab27c2e27873 100644 --- a/pkgs/development/libraries/qt-5/5.12/default.nix +++ b/pkgs/development/libraries/qt-5/5.12/default.nix @@ -150,6 +150,7 @@ let qtserialport = callPackage ../modules/qtserialport.nix {}; qtspeech = callPackage ../modules/qtspeech.nix {}; qtsvg = callPackage ../modules/qtsvg.nix {}; + qtscxml = callPackage ../modules/qtscxml.nix {}; qttools = callPackage ../modules/qttools.nix {}; qttranslations = callPackage ../modules/qttranslations.nix {}; qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {}; diff --git a/pkgs/development/libraries/qt-5/modules/qtscxml.nix b/pkgs/development/libraries/qt-5/modules/qtscxml.nix new file mode 100644 index 000000000000..62b428b08933 --- /dev/null +++ b/pkgs/development/libraries/qt-5/modules/qtscxml.nix @@ -0,0 +1,7 @@ +{ qtModule, qtbase, qtdeclarative }: + +qtModule { + name = "qtscxml"; + qtInputs = [ qtbase qtdeclarative ]; + outputs = [ "out" "dev" "bin" ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3d259a3b023e..a36b82a5402c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10757,6 +10757,8 @@ in qtcreator = libsForQt5.callPackage ../development/tools/qtcreator { }; + qxmledit = libsForQt5.callPackage ../applications/editors/qxmledit {} ; + r10k = callPackage ../tools/system/r10k { }; inherit (callPackages ../development/tools/analysis/radare2 ({ -- cgit 1.4.1 From 354508b0c5be4b269538672119283c6e5df8398a Mon Sep 17 00:00:00 2001 From: Alexey Uimanov Date: Wed, 1 Apr 2020 23:07:57 +0500 Subject: Update pkgs/applications/editors/qxmledit/default.nix Co-Authored-By: Thomas Tuegel --- pkgs/applications/editors/qxmledit/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/editors/qxmledit/default.nix b/pkgs/applications/editors/qxmledit/default.nix index 131c015d1c15..9e9766f04e83 100644 --- a/pkgs/applications/editors/qxmledit/default.nix +++ b/pkgs/applications/editors/qxmledit/default.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation rec { outputs = [ "out" "doc" ] ; 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" -''; + 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" + ''; meta = with stdenv.lib; { description = "Simple XML editor based on qt libraries" ; -- cgit 1.4.1