diff --git a/pkgs/applications/misc/xneur/default.nix b/pkgs/applications/misc/xneur/default.nix index a1cfd73770c6..545d686af7d8 100644 --- a/pkgs/applications/misc/xneur/default.nix +++ b/pkgs/applications/misc/xneur/default.nix @@ -1,11 +1,12 @@ args: with args; +let s = import ./src-for-default.nix; in + stdenv.mkDerivation rec { - version = "0.9.5"; - name="xneur"; + inherit (s) version name; src = fetchurl { - url = "http://dists.xneur.ru/release-${version}/tgz/${name}-${version}.tar.bz2"; - sha256 = "06rl7blpyhm61p5hyip55z8gdra6z89d8h4g4mbn4cbs8hd8hq8w"; + inherit(s) url; + sha256 = s.hash; }; buildInputs = [libX11 pkgconfig pcre GStreamer glib libxml2 aspell @@ -33,6 +34,8 @@ stdenv.mkDerivation rec { description = "xneur is the keyboard layout switcher."; homepage = http://xneur.ru; license = "GPL2+"; + maintainers = [ stdenv.lib.maintainers.raskin ]; + platforms = stdenv.lib.platforms.allBut "i686-cygwin"; }; } diff --git a/pkgs/applications/misc/xneur/src-for-default.nix b/pkgs/applications/misc/xneur/src-for-default.nix new file mode 100644 index 000000000000..61c20718b378 --- /dev/null +++ b/pkgs/applications/misc/xneur/src-for-default.nix @@ -0,0 +1,9 @@ +rec { + version="0.9.6"; + name="xneur-0.9.6"; + hash="0xxyj2w5ckk2pnqsx853zgs6s2lq1cb101px472rccpixcbdfs47"; + url="http://dists.xneur.ru/release-0.9.6.6/tgz/xneur-0.9.6.tar.bz2"; + advertisedUrl="http://dists.xneur.ru/release-0.9.6/tgz/xneur-0.9.6.tar.bz2"; + + +} diff --git a/pkgs/applications/misc/xneur/src-info-for-default.nix b/pkgs/applications/misc/xneur/src-info-for-default.nix new file mode 100644 index 000000000000..fbc8100b94fd --- /dev/null +++ b/pkgs/applications/misc/xneur/src-info-for-default.nix @@ -0,0 +1,4 @@ +{ + downloadPage = "http://xneur.ru/wiki/Downloads"; + baseName = "xneur"; +}