wine: add 64 bit build and nixpkgs configuration

The default release channel (stable/unstable) and the default
build (wine32/wine64/wineWow) can be customized via the "wine" key in config
This commit is contained in:
Herwig Hochleitner
2015-05-10 15:45:01 +02:00
parent f550eb7fde
commit ae6d2796bc
8 changed files with 201 additions and 172 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/sh
source $stdenv/setup
unpackPhase
patchPhase
configureScript=$TMP/$sourceRoot/configure
mkdir -p $TMP/wine-wow $TMP/wine64
cd $TMP/wine64
sourceRoot=`pwd`
configureFlags="--enable-win64"
configurePhase
buildPhase
# checkPhase
cd $TMP/wine-wow
sourceRoot=`pwd`
configureFlags="--with-wine64=../wine64"
configurePhase
buildPhase
# checkPhase
eval "$preInstall"
cd $TMP/wine64 && make install
cd $TMP/wine-wow && make install
eval "$postInstall"
fixupPhase