2021-02-20 20:07:22 +00:00
|
|
|
{ lib, fetchFromGitHub
|
|
|
|
, meson, ninja, pkg-config, wrapGAppsHook
|
2021-04-26 14:26:26 +01:00
|
|
|
, desktop-file-utils, gsettings-desktop-schemas, libnotify, libhandy
|
2021-02-20 20:07:22 +00:00
|
|
|
, python3Packages, gettext
|
|
|
|
, appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3
|
2021-08-18 07:36:35 +01:00
|
|
|
, steam-run, xdg-utils, pciutils, cabextract, wineWowPackages
|
2021-02-20 20:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "bottles";
|
2021-08-01 10:50:21 +01:00
|
|
|
version = "2021.7.28-treviso-2";
|
2021-02-20 20:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bottlesdevs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-01 10:50:21 +01:00
|
|
|
sha256 = "0kvwcajm9izvkwfg7ir7bks39bpc665idwa8mc8d536ajyjriysn";
|
2021-02-20 20:07:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/postinstall.py
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gspell
|
|
|
|
gtk3
|
2021-04-26 14:26:26 +01:00
|
|
|
libhandy
|
2021-02-20 20:07:22 +00:00
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-07-23 13:30:51 +01:00
|
|
|
pyyaml
|
|
|
|
requests
|
2021-02-20 20:07:22 +00:00
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
lxml
|
|
|
|
dbus-python
|
|
|
|
gst-python
|
|
|
|
liblarch
|
2021-08-01 10:50:21 +01:00
|
|
|
patool
|
2021-08-01 10:56:48 +01:00
|
|
|
] ++ [
|
2021-08-18 07:36:35 +01:00
|
|
|
steam-run
|
2021-08-01 10:56:48 +01:00
|
|
|
xdg-utils
|
2021-08-01 11:20:43 +01:00
|
|
|
pciutils
|
2021-08-18 07:36:35 +01:00
|
|
|
cabextract
|
|
|
|
wineWowPackages.minimal
|
2021-08-01 10:56:48 +01:00
|
|
|
];
|
2021-02-20 20:07:22 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
strictDeps = false; # broken with gobject-introspection setup hook, see https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
dontWrapGApps = true; # prevent double wrapping
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace build-aux/meson/postinstall.py \
|
|
|
|
--replace "'update-desktop-database'" "'${desktop-file-utils}/bin/update-desktop-database'"
|
|
|
|
substituteInPlace src/runner.py \
|
2021-08-18 07:36:35 +01:00
|
|
|
--replace " {runner}" " ${steam-run}/bin/steam-run {runner}" \
|
|
|
|
--replace " {dxvk_setup}" " ${steam-run}/bin/steam-run {dxvk_setup}"
|
2021-08-01 19:07:14 +01:00
|
|
|
substituteInPlace src/runner_utilities.py \
|
2021-08-18 07:36:35 +01:00
|
|
|
--replace " {runner}" " ${steam-run}/bin/steam-run {runner}" \
|
2021-02-20 20:07:22 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An easy-to-use wineprefix manager";
|
2021-04-26 14:26:26 +01:00
|
|
|
homepage = "https://usebottles.com/";
|
2021-02-20 20:07:22 +00:00
|
|
|
license = licenses.gpl3Only;
|
2021-04-26 14:26:26 +01:00
|
|
|
maintainers = with maintainers; [ bloomvdomino shamilton ];
|
2021-02-20 20:07:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|