2021-08-18 11:27:53 +07:00
|
|
|
{ callPackage
|
|
|
|
|
, getPaths
|
|
|
|
|
, lib
|
2021-07-15 19:57:49 +07:00
|
|
|
, winePackages
|
|
|
|
|
, wineUnstable
|
|
|
|
|
, wineStaging
|
|
|
|
|
, ...
|
2021-06-26 23:48:15 +07:00
|
|
|
}:
|
2021-08-18 11:27:53 +07:00
|
|
|
let
|
|
|
|
|
sources = callPackage ./sources.nix {};
|
|
|
|
|
in
|
2021-06-26 23:48:15 +07:00
|
|
|
# TODO: Use winePackages.callPackage
|
2021-08-18 11:27:53 +07:00
|
|
|
(wineStaging.override {
|
2021-06-26 23:48:15 +07:00
|
|
|
wineRelease = "staging";
|
|
|
|
|
wineBuild = "wineWow";
|
|
|
|
|
|
|
|
|
|
pngSupport = true;
|
|
|
|
|
jpegSupport = true;
|
|
|
|
|
tiffSupport = true;
|
|
|
|
|
gettextSupport = true;
|
|
|
|
|
fontconfigSupport = true;
|
|
|
|
|
alsaSupport = true;
|
|
|
|
|
gtkSupport = true;
|
|
|
|
|
openglSupport = true;
|
|
|
|
|
tlsSupport = true;
|
|
|
|
|
gstreamerSupport = true;
|
|
|
|
|
#cupsSupport = true;
|
|
|
|
|
colorManagementSupport = true;
|
|
|
|
|
dbusSupport = true;
|
|
|
|
|
mpg123Support = true;
|
|
|
|
|
#openalSupport = true;
|
|
|
|
|
#openclSupport = true;
|
|
|
|
|
#cairoSupport = true;
|
|
|
|
|
#odbcSupport = true;
|
|
|
|
|
netapiSupport = true;
|
|
|
|
|
cursesSupport = true;
|
|
|
|
|
vaSupport = true;
|
|
|
|
|
pcapSupport = true;
|
|
|
|
|
#v4lSupport = true;
|
|
|
|
|
#saneSupport = true;
|
|
|
|
|
gsmSupport = true;
|
|
|
|
|
#gphoto2Support = true;
|
|
|
|
|
#ldapSupport = true;
|
|
|
|
|
pulseaudioSupport = true;
|
|
|
|
|
udevSupport = true;
|
|
|
|
|
xineramaSupport = true;
|
|
|
|
|
xmlSupport = true;
|
|
|
|
|
vulkanSupport = true;
|
|
|
|
|
sdlSupport = true;
|
|
|
|
|
faudioSupport = true;
|
|
|
|
|
vkd3dSupport = true;
|
|
|
|
|
mingwSupport = true;
|
2021-08-18 11:27:53 +07:00
|
|
|
}).overrideDerivation (old: {
|
|
|
|
|
inherit (sources) src;
|
|
|
|
|
name = "wine-osu-${sources.version}-staging";
|
|
|
|
|
patches = (old.patches or []) ++ getPaths ./patches;
|
|
|
|
|
postPatch = wineUnstable.postPatch or "" + ''
|
|
|
|
|
patchShebangs tools
|
|
|
|
|
cp -r ${sources.staging}/patches .
|
|
|
|
|
chmod +w patches
|
|
|
|
|
cd patches
|
|
|
|
|
patchShebangs gitapply.sh
|
|
|
|
|
./patchinstall.sh DESTDIR="$PWD/.." --all ${lib.concatMapStringsSep " " (ps: "-W ${ps}") []}
|
|
|
|
|
cd ..
|
|
|
|
|
'';
|
|
|
|
|
})
|