diff --git a/pkgs/misc/emulators/wine/default.nix b/pkgs/misc/emulators/wine/default.nix index a59bce94ab51..c24bbaad1a57 100644 --- a/pkgs/misc/emulators/wine/default.nix +++ b/pkgs/misc/emulators/wine/default.nix @@ -7,11 +7,11 @@ assert stdenv.isLinux; assert stdenv.gcc.gcc != null; stdenv.mkDerivation rec { - name = "wine-1.5.15"; + name = "wine-${meta.version}"; src = fetchurl { url = "mirror://sourceforge/wine/${name}.tar.bz2"; - sha256 = "0m4lnqq4aniczp6m67m2n2ijz9h8z83ka3y30kyxkidv0j16jhi6"; + sha256 = "05ac8qlpbiacn3gmwlafpppyl7r2grsym20gz163szsbmfzlqnxi"; }; gecko = fetchurl { @@ -46,6 +46,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = { + version = "1.5.17"; homepage = "http://www.winehq.org/"; license = "LGPL"; description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix"; diff --git a/pkgs/misc/emulators/wine/default.upstream b/pkgs/misc/emulators/wine/default.upstream new file mode 100644 index 000000000000..a1e9fe05f408 --- /dev/null +++ b/pkgs/misc/emulators/wine/default.upstream @@ -0,0 +1,13 @@ +name wine +url http://sourceforge.net/projects/wine/files/Source/ +version_link 'wine-[0-9.]+[.]tar[.][0-9a-z]+/download$' +SF_redirect + +do_regenerate () { + set_var_value name "$CURRENT_NAME-"'${meta.version}' + set_var_value version "$CURRENT_VERSION" + set_var_value url 'mirror://sourceforge/wine/${name}.tar.bz2' 1 + set_var_value sha256 "$CURRENT_HASH" + cat "$CURRENT_TARGET" +} +