From eb1ed6553a75485d08a5577deb126be77248df39 Mon Sep 17 00:00:00 2001 From: Dmitriy <43755002+psydvl@users.noreply.github.com> Date: Sat, 15 Jan 2022 18:40:50 +0300 Subject: [PATCH 1/2] bottles: 2021.12.28-treviso -> 2022.2.14-trento `libunwind` and `libusb1` added to steam.run because program default wine runner `caffe` require it --- pkgs/applications/misc/bottles/default.nix | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/bottles/default.nix b/pkgs/applications/misc/bottles/default.nix index 85d801e2ec3c..c58136fb4b6e 100644 --- a/pkgs/applications/misc/bottles/default.nix +++ b/pkgs/applications/misc/bottles/default.nix @@ -2,20 +2,32 @@ , meson, ninja, pkg-config, wrapGAppsHook , desktop-file-utils, gsettings-desktop-schemas, libnotify, libhandy, webkitgtk , python3Packages, gettext -, appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3, gnome -, steam-run, xdg-utils, pciutils, cabextract, wineWowPackages +, appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3, gtksourceview4, gnome +, steam, xdg-utils, pciutils, cabextract, wineWowPackages , freetype, p7zip, gamemode +, bottlesExtraLibraries ? pkgs: [ ] # extra packages to add to steam.run multiPkgs +, bottlesExtraPkgs ? pkgs: [ ] # extra packages to add to steam.run targetPkgs }: +let + steam-run = (steam.override { + # required by wine runner `caffe` + extraLibraries = pkgs: with pkgs; [ libunwind libusb1 ] + ++ bottlesExtraLibraries pkgs; + extraPkgs = pkgs: [ ] + ++ bottlesExtraPkgs pkgs; + }).run; +in python3Packages.buildPythonApplication rec { pname = "bottles"; - version = "2021.12.28-treviso"; + version = "2022.2.14-trento"; + sha256 = "GtVC3JfVoooJ+MuF9r1W3J8RfXNKalaIgecv1ner7GA="; src = fetchFromGitHub { owner = "bottlesdevs"; repo = pname; rev = version; - sha256 = "lZbSLLBg7XM6PuOmu5rJ15dg+QHHRcjijRYE6u3WT9Y="; + inherit sha256; }; postPatch = '' @@ -40,6 +52,7 @@ python3Packages.buildPythonApplication rec { gsettings-desktop-schemas gspell gtk3 + gtksourceview4 libhandy libnotify webkitgtk @@ -75,8 +88,8 @@ python3Packages.buildPythonApplication rec { preConfigure = '' patchShebangs build-aux/meson/postinstall.py - substituteInPlace src/backend/runner.py \ - --replace "{Paths.runners}" "${steam-run}/bin/steam-run {Paths.runners}" + substituteInPlace src/backend/wine/winecommand.py \ + --replace '= f"{Paths.runners}' '= f"${steam-run}/bin/steam-run {Paths.runners}' ''; preFixup = '' From 8d2fa50ec9aefbf31ebc26e98f0c6498da24ff95 Mon Sep 17 00:00:00 2001 From: Dmitriy <43755002+psydvl@users.noreply.github.com> Date: Sat, 15 Jan 2022 19:51:14 +0300 Subject: [PATCH 2/2] Add psydvl to maintainers list Add psydvl to bottles package maintainers --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/applications/misc/bottles/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4ffcc6238a53..8c72b2a29e49 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9863,6 +9863,12 @@ githubId = 20524473; name = "Psyanticy"; }; + psydvl = { + email = "psydvl@fea.st"; + github = "psydvl"; + githubId = 43755002; + name = "Dmitriy P"; + }; ptival = { email = "valentin.robert.42@gmail.com"; github = "Ptival"; diff --git a/pkgs/applications/misc/bottles/default.nix b/pkgs/applications/misc/bottles/default.nix index c58136fb4b6e..22d7560c6897 100644 --- a/pkgs/applications/misc/bottles/default.nix +++ b/pkgs/applications/misc/bottles/default.nix @@ -100,7 +100,7 @@ python3Packages.buildPythonApplication rec { description = "An easy-to-use wineprefix manager"; homepage = "https://usebottles.com/"; license = licenses.gpl3Only; - maintainers = with maintainers; [ bloomvdomino shamilton ]; + maintainers = with maintainers; [ bloomvdomino psydvl shamilton ]; platforms = platforms.linux; }; }