2021-01-25 08:26:54 +00:00
|
|
|
{ lib, callPackage, wineUnstable }:
|
2015-04-06 22:13:56 +00:00
|
|
|
|
2015-05-10 19:33:00 +00:00
|
|
|
with callPackage ./util.nix {};
|
|
|
|
|
2016-02-02 03:55:46 +00:00
|
|
|
let patch = (callPackage ./sources.nix {}).staging;
|
2015-05-10 19:33:00 +00:00
|
|
|
build-inputs = pkgNames: extra:
|
2015-10-28 20:39:46 +00:00
|
|
|
(mkBuildInputs wineUnstable.pkgArches pkgNames) ++ extra;
|
2021-01-15 13:21:58 +00:00
|
|
|
in assert lib.getVersion wineUnstable == patch.version;
|
2015-04-06 22:13:56 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
(lib.overrideDerivation wineUnstable (self: {
|
2020-11-24 15:29:28 +00:00
|
|
|
buildInputs = build-inputs [ "perl" "util-linux" "autoconf" "gitMinimal" ] self.buildInputs;
|
2015-04-06 22:13:56 +00:00
|
|
|
|
|
|
|
name = "${self.name}-staging";
|
|
|
|
|
|
|
|
postPatch = self.postPatch or "" + ''
|
|
|
|
patchShebangs tools
|
|
|
|
cp -r ${patch}/patches .
|
|
|
|
chmod +w patches
|
|
|
|
cd patches
|
|
|
|
patchShebangs gitapply.sh
|
2021-01-15 13:21:58 +00:00
|
|
|
./patchinstall.sh DESTDIR="$PWD/.." --all ${lib.concatMapStringsSep " " (ps: "-W ${ps}") patch.disabledPatchsets}
|
2015-04-06 22:13:56 +00:00
|
|
|
cd ..
|
|
|
|
'';
|
2020-06-11 18:06:07 +00:00
|
|
|
})) // {
|
|
|
|
meta = wineUnstable.meta // {
|
|
|
|
description = wineUnstable.meta.description + " (with staging patches)";
|
|
|
|
};
|
|
|
|
}
|