diff --git a/pkgs/applications/editors/qxmledit/default.nix b/pkgs/applications/editors/qxmledit/default.nix index c13b6a4d53e9..4b59da01ba21 100644 --- a/pkgs/applications/editors/qxmledit/default.nix +++ b/pkgs/applications/editors/qxmledit/default.nix @@ -1,14 +1,24 @@ -{ lib, stdenv, fetchFromGitHub, - qmake, qtbase, qtxmlpatterns, qtsvg, qtscxml, qtquick1, libGLU }: +{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qtxmlpatterns, qtsvg, qtscxml +, qtquick1, libGLU }: stdenv.mkDerivation rec { - pname = "qxmledit" ; - version = "0.9.15" ; - src = fetchFromGitHub ( lib.importJSON ./qxmledit.json ) ; - nativeBuildInputs = [ qmake ] ; - buildInputs = [ qtbase qtxmlpatterns qtsvg qtscxml qtquick1 libGLU ] ; - qmakeFlags = [ "CONFIG+=release" ] ; - outputs = [ "out" "doc" ] ; + 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" ]; preConfigure = '' export QXMLEDIT_INST_DATA_DIR="$out/share/data" @@ -23,9 +33,10 @@ stdenv.mkDerivation rec { meta = with lib; { broken = stdenv.isDarwin; - description = "Simple XML editor based on qt libraries" ; + description = "Simple XML editor based on qt libraries"; homepage = "https://sourceforge.net/projects/qxmledit"; license = licenses.lgpl2; - platforms = platforms.all; - } ; + platforms = platforms.unix; + changelog = "https://github.com/lbellonda/qxmledit/blob/${version}/NEWS"; + }; } diff --git a/pkgs/applications/editors/qxmledit/qxmledit.json b/pkgs/applications/editors/qxmledit/qxmledit.json deleted file mode 100644 index 88d2e3c4c2b9..000000000000 --- a/pkgs/applications/editors/qxmledit/qxmledit.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "owner": "lbellonda", - "repo": "qxmledit", - "rev": "6136dca50ceb3b4447c91a7a18dcf84785ea11d1", - "sha256": "1wcnphalwf0a5gz9r44jgk8wcv1w2qipbwjkbzkra2kxanxns834" -}