pin wine version

slightly scuffed and rushed
This commit is contained in:
LavaDesu 2021-08-18 11:27:53 +07:00
parent d46c396d4a
commit 05b8c3bd73
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 38 additions and 5 deletions

View file

@ -1,13 +1,16 @@
{ getPaths
{ callPackage
, getPaths
, lib
, winePackages
, wineUnstable
, wineStaging
, ...
}:
let
sources = callPackage ./sources.nix {};
in
# TODO: Use winePackages.callPackage
(wineStaging.overrideDerivation (old: {
patches = (old.patches or []) ++ getPaths ./patches;
})).override {
(wineStaging.override {
wineRelease = "staging";
wineBuild = "wineWow";
@ -47,4 +50,17 @@
faudioSupport = true;
vkd3dSupport = true;
mingwSupport = true;
}
}).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 ..
'';
})