2022-10-19 21:23:15 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gitUpdater
|
|
|
|
, python3Packages
|
|
|
|
, blueprint-compiler
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, librsvg
|
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
|
|
|
, libadwaita
|
|
|
|
, cabextract
|
|
|
|
, p7zip
|
|
|
|
, xdpyinfo
|
|
|
|
, imagemagick
|
2022-11-21 22:52:40 +00:00
|
|
|
, lsb-release
|
|
|
|
, pciutils
|
2022-10-19 21:23:15 +00:00
|
|
|
, procps
|
|
|
|
, gamescope
|
|
|
|
, mangohud
|
2022-11-21 22:52:40 +00:00
|
|
|
, vkbasalt-cli
|
2022-10-19 21:23:15 +00:00
|
|
|
, vmtouch
|
2021-02-20 20:07:22 +00:00
|
|
|
}:
|
2023-01-16 09:55:04 +00:00
|
|
|
|
2021-02-20 20:07:22 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2022-11-22 13:59:09 +00:00
|
|
|
pname = "bottles-unwrapped";
|
2023-05-21 14:05:31 +00:00
|
|
|
version = "51.6";
|
2021-02-20 20:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bottlesdevs";
|
2022-11-22 13:59:09 +00:00
|
|
|
repo = "bottles";
|
2021-02-20 20:07:22 +00:00
|
|
|
rev = version;
|
2023-05-21 14:05:31 +00:00
|
|
|
sha256 = "sha256-9oEC+ksgHz2HP4jVwTbLzjqc8WG1+S8hmVgl2dcuPB0=";
|
2021-02-20 20:07:22 +00:00
|
|
|
};
|
|
|
|
|
2023-04-18 09:48:49 +00:00
|
|
|
patches = [
|
|
|
|
./vulkan_icd.patch
|
|
|
|
];
|
2022-10-19 21:23:15 +00:00
|
|
|
|
2022-12-14 17:57:59 +00:00
|
|
|
# https://github.com/bottlesdevs/Bottles/wiki/Packaging
|
2021-02-20 20:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
2022-10-19 21:23:15 +00:00
|
|
|
blueprint-compiler
|
2021-02-20 20:07:22 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-10-19 21:23:15 +00:00
|
|
|
wrapGAppsHook4
|
|
|
|
gtk4 # gtk4-update-icon-cache
|
2021-02-20 20:07:22 +00:00
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-10-19 21:23:15 +00:00
|
|
|
librsvg
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
libadwaita
|
2021-02-20 20:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2023-02-21 08:26:14 +00:00
|
|
|
pathvalidate
|
2022-12-14 17:57:59 +00:00
|
|
|
pycurl
|
2021-07-23 12:30:51 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
2021-02-20 20:07:22 +00:00
|
|
|
pygobject3
|
2021-08-01 09:50:21 +00:00
|
|
|
patool
|
2021-12-18 16:15:08 +00:00
|
|
|
markdown
|
2022-10-19 21:23:15 +00:00
|
|
|
fvs
|
|
|
|
pefile
|
|
|
|
urllib3
|
|
|
|
chardet
|
|
|
|
certifi
|
|
|
|
idna
|
|
|
|
orjson
|
|
|
|
icoextract
|
2021-08-01 09:56:48 +00:00
|
|
|
] ++ [
|
2021-08-18 06:36:35 +00:00
|
|
|
cabextract
|
2021-12-18 16:15:08 +00:00
|
|
|
p7zip
|
2022-10-19 21:23:15 +00:00
|
|
|
xdpyinfo
|
|
|
|
imagemagick
|
2022-11-21 22:52:40 +00:00
|
|
|
vkbasalt-cli
|
2022-10-19 21:23:15 +00:00
|
|
|
|
|
|
|
gamescope
|
2022-03-01 20:05:02 +00:00
|
|
|
mangohud
|
2022-10-19 21:23:15 +00:00
|
|
|
vmtouch
|
2022-11-21 22:52:40 +00:00
|
|
|
|
|
|
|
# Undocumented (subprocess.Popen())
|
|
|
|
lsb-release
|
|
|
|
pciutils
|
|
|
|
procps
|
2021-08-01 09:56:48 +00:00
|
|
|
];
|
2021-02-20 20:07:22 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
dontWrapGApps = true; # prevent double wrapping
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2022-09-27 21:12:05 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-04-20 22:19:45 +00:00
|
|
|
|
2021-02-20 20:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An easy-to-use wineprefix manager";
|
2021-04-26 13:26:26 +00:00
|
|
|
homepage = "https://usebottles.com/";
|
2022-02-27 21:44:04 +00:00
|
|
|
downloadPage = "https://github.com/bottlesdevs/Bottles/releases";
|
2021-02-20 20:07:22 +00:00
|
|
|
license = licenses.gpl3Only;
|
2022-06-22 22:52:42 +00:00
|
|
|
maintainers = with maintainers; [ psydvl shamilton ];
|
2021-02-20 20:07:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|