pin wine version
slightly scuffed and rushed
This commit is contained in:
parent
d46c396d4a
commit
05b8c3bd73
2 changed files with 38 additions and 5 deletions
|
|
@ -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 ..
|
||||
'';
|
||||
})
|
||||
|
|
|
|||
17
packages/wine-osu/sources.nix
Normal file
17
packages/wine-osu/sources.nix
Normal 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}";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue