3
0
Fork 0
forked from mirrors/nixpkgs

Wine: update, add auto-update helper

This commit is contained in:
Michael Raskin 2012-11-10 14:43:17 +04:00
parent fe4b9beae7
commit 3061db0bb2
2 changed files with 16 additions and 2 deletions

View file

@ -7,11 +7,11 @@ assert stdenv.isLinux;
assert stdenv.gcc.gcc != null; assert stdenv.gcc.gcc != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "wine-1.5.15"; name = "wine-${meta.version}";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/wine/${name}.tar.bz2"; url = "mirror://sourceforge/wine/${name}.tar.bz2";
sha256 = "0m4lnqq4aniczp6m67m2n2ijz9h8z83ka3y30kyxkidv0j16jhi6"; sha256 = "05ac8qlpbiacn3gmwlafpppyl7r2grsym20gz163szsbmfzlqnxi";
}; };
gecko = fetchurl { gecko = fetchurl {
@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = {
version = "1.5.17";
homepage = "http://www.winehq.org/"; homepage = "http://www.winehq.org/";
license = "LGPL"; license = "LGPL";
description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix"; description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix";

View file

@ -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"
}