Merge pull request #134289 from asbachb/update/bottles

This commit is contained in:
Sandro 2021-08-24 23:26:51 +02:00 committed by GitHub
commit f78e699035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,18 +3,18 @@
, desktop-file-utils, gsettings-desktop-schemas, libnotify, libhandy
, python3Packages, gettext
, appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3
, steam-run-native
, steam-run, xdg-utils, pciutils, cabextract, wineWowPackages
}:
python3Packages.buildPythonApplication rec {
pname = "bottles";
version = "2021.7.14-treviso";
version = "2021.7.28-treviso-2";
src = fetchFromGitHub {
owner = "bottlesdevs";
repo = pname;
rev = version;
sha256 = "0xhfk1ll8vacgrr0kkhynq4bryjhfjs29j824bark5mj9b6lkbix";
sha256 = "0kvwcajm9izvkwfg7ir7bks39bpc665idwa8mc8d536ajyjriysn";
};
postPatch = ''
@ -52,7 +52,14 @@ python3Packages.buildPythonApplication rec {
dbus-python
gst-python
liblarch
] ++ [ steam-run-native ];
patool
] ++ [
steam-run
xdg-utils
pciutils
cabextract
wineWowPackages.minimal
];
format = "other";
strictDeps = false; # broken with gobject-introspection setup hook, see https://github.com/NixOS/nixpkgs/issues/56943
@ -62,8 +69,10 @@ python3Packages.buildPythonApplication rec {
substituteInPlace build-aux/meson/postinstall.py \
--replace "'update-desktop-database'" "'${desktop-file-utils}/bin/update-desktop-database'"
substituteInPlace src/runner.py \
--replace " {runner}" " ${steam-run-native}/bin/steam-run {runner}" \
--replace " {dxvk_setup}" " ${steam-run-native}/bin/steam-run {dxvk_setup}"
--replace " {runner}" " ${steam-run}/bin/steam-run {runner}" \
--replace " {dxvk_setup}" " ${steam-run}/bin/steam-run {dxvk_setup}"
substituteInPlace src/runner_utilities.py \
--replace " {runner}" " ${steam-run}/bin/steam-run {runner}" \
'';
preFixup = ''