nixpkgs/pkgs/misc/emulators/wine/staging.nix

25 lines
731 B
Nix
Raw Normal View History

{ stdenv, callPackage, wineUnstable, libtxc_dxtn_Name }:
2015-04-06 22:13:56 +00:00
with callPackage ./util.nix {};
let patch = (callPackage ./sources.nix {}).staging;
build-inputs = pkgNames: extra:
(mkBuildInputs wineUnstable.pkgArches pkgNames) ++ extra;
in assert (builtins.parseDrvName wineUnstable.name).version == patch.version;
2015-04-06 22:13:56 +00:00
stdenv.lib.overrideDerivation wineUnstable (self: {
buildInputs = build-inputs [ "perl" "utillinux" "autoconf" libtxc_dxtn_Name ] 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
2017-05-23 23:07:45 +00:00
./patchinstall.sh DESTDIR="$PWD/.." --all
2015-04-06 22:13:56 +00:00
cd ..
'';
})