mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
ae6d2796bc
The default release channel (stable/unstable) and the default build (wine32/wine64/wineWow) can be customized via the "wine" key in config
30 lines
469 B
Bash
30 lines
469 B
Bash
#!/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
|