fixes for updates

This commit is contained in:
notgne2 2021-11-28 12:53:16 -07:00
parent 1e0a1710f9
commit edee9e5b1d
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
3 changed files with 23 additions and 12 deletions

View file

@ -76,10 +76,24 @@ in
home.packages =
let
newwine = (pkgs.wineFull.override { wineBuild = "wineWow"; wineRelease = "staging"; });
newwinetricks = pkgs.winetricks.override { wine = newwine; };
newwinetricks = pkgs.winetricks.overrideAttrs (old: rec {
pathAdd = "${newwine}/bin:" + old.pathAdd;
postInstall = ''
sed -i \
-e '2i PATH="${pathAdd}"' \
"$out/bin/winetricks"
'';
});
oldwine = pkgs.wineWowPackages.full;
oldwinetricks = pkgs.winetricks.override { wine = oldwine; };
oldwinetricks = pkgs.winetricks.overrideAttrs (old: rec {
pathAdd = "${oldwine}/bin:" + old.pathAdd;
postInstall = ''
sed -i \
-e '2i PATH="${pathAdd}"' \
"$out/bin/winetricks"
'';
});
in
with pkgs; [
oldwine