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

View file

@ -0,0 +1,17 @@
{ fetchFromGitHub, lib }:
let
version = "6.14";
in {
inherit version;
src = builtins.fetchurl {
url = "https://dl.winehq.org/wine/source/6.x/wine-${version}.tar.xz";
sha256 = "sha256-ZLRxk5lDvAjjUQJ9tvvCRlwTllCjv/65Flf/DujCUgI=";
};
staging = fetchFromGitHub {
sha256 = "sha256-yzpRWNx/e3BDCh1dyf8VdjLgvu6yZ/CXre/cb1roaVs=";
owner = "wine-staging";
repo = "wine-staging";
rev = "v${version}";
};
}