summary refs log tree commit diff
path: root/pkgs/applications/editors/qxmledit/default.nix
blob: 9e9766f04e83cc984277600875f6da1a9b525e99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
  } ;
}