summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2012-11-10 14:43:17 +0400
committerMichael Raskin <7c6f434c@mail.ru>2012-11-10 14:43:17 +0400
commit3061db0bb25899e65cfe5d524ba7cd8d70302d8a (patch)
tree18f7e45361c86cb69354c4af7425dbf9c1eac1e0 /pkgs
parentfe4b9beae7c2ff51d7fc75d105c171851ce5bb36 (diff)
Wine: update, add auto-update helper
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/misc/emulators/wine/default.nix5
-rw-r--r--pkgs/misc/emulators/wine/default.upstream13
2 files changed, 16 insertions, 2 deletions
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"
+}
+