2024-09-19 14:19:46 +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,
|
|
|
|
lsb-release,
|
|
|
|
pciutils,
|
|
|
|
procps,
|
|
|
|
gamescope,
|
|
|
|
mangohud,
|
|
|
|
vkbasalt-cli,
|
|
|
|
vmtouch,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2022-12-17 10:02:37 +00:00
|
|
|
pname = "bottles-unwrapped";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "51.13";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bottlesdevs";
|
2022-12-17 10:02:37 +00:00
|
|
|
repo = "bottles";
|
2021-03-09 03:18:52 +00:00
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-ZcUevGY81H3ATTk390ojBp/4zBE2Lui7Qa+Qe8B0XL4=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [ ./vulkan_icd.patch ];
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# https://github.com/bottlesdevs/Bottles/wiki/Packaging
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [
|
2022-11-27 09:42:12 +00:00
|
|
|
blueprint-compiler
|
2021-03-09 03:18:52 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-11-27 09:42:12 +00:00
|
|
|
wrapGAppsHook4
|
|
|
|
gtk4 # gtk4-update-icon-cache
|
2021-03-09 03:18:52 +00:00
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-11-27 09:42:12 +00:00
|
|
|
librsvg
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
libadwaita
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
with python3Packages;
|
|
|
|
[
|
|
|
|
pathvalidate
|
|
|
|
pycurl
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
pygobject3
|
|
|
|
patool
|
|
|
|
markdown
|
|
|
|
fvs
|
|
|
|
pefile
|
|
|
|
urllib3
|
|
|
|
chardet
|
|
|
|
certifi
|
|
|
|
idna
|
|
|
|
orjson
|
|
|
|
icoextract
|
|
|
|
]
|
|
|
|
++ [
|
|
|
|
cabextract
|
|
|
|
p7zip
|
|
|
|
xdpyinfo
|
|
|
|
imagemagick
|
|
|
|
vkbasalt-cli
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
gamescope
|
|
|
|
mangohud
|
|
|
|
vmtouch
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Undocumented (subprocess.Popen())
|
|
|
|
lsb-release
|
|
|
|
pciutils
|
|
|
|
procps
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
dontWrapGApps = true; # prevent double wrapping
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Easy-to-use wineprefix manager";
|
2021-05-03 20:48:10 +00:00
|
|
|
homepage = "https://usebottles.com/";
|
2022-03-05 16:20:37 +00:00
|
|
|
downloadPage = "https://github.com/bottlesdevs/Bottles/releases";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
psydvl
|
|
|
|
shamilton
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "bottles";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
}
|