2022-11-27 09:42:12 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gitUpdater
|
|
|
|
, python3Packages
|
|
|
|
, blueprint-compiler
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, librsvg
|
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
|
|
|
, libadwaita
|
|
|
|
, cabextract
|
|
|
|
, p7zip
|
|
|
|
, xdpyinfo
|
|
|
|
, imagemagick
|
2022-12-17 10:02:37 +00:00
|
|
|
, lsb-release
|
|
|
|
, pciutils
|
2022-11-27 09:42:12 +00:00
|
|
|
, procps
|
|
|
|
, gamescope
|
|
|
|
, mangohud
|
2022-12-17 10:02:37 +00:00
|
|
|
, vkbasalt-cli
|
2022-11-27 09:42:12 +00:00
|
|
|
, 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";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "50.2";
|
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;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-+r/r3vExnvYQIicKAEmwZ+eRSep6kWte5k7gu9jC67w=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
patches = [ ./vulkan_icd.patch ];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2022-12-17 10:02:37 +00:00
|
|
|
pycurl
|
2021-07-24 12:14:16 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
2021-03-09 03:18:52 +00:00
|
|
|
pygobject3
|
2021-09-26 12:46:18 +00:00
|
|
|
patool
|
2021-12-30 13:39:12 +00:00
|
|
|
markdown
|
2022-11-27 09:42:12 +00:00
|
|
|
fvs
|
|
|
|
pefile
|
|
|
|
urllib3
|
|
|
|
chardet
|
|
|
|
certifi
|
|
|
|
idna
|
|
|
|
pillow
|
|
|
|
orjson
|
|
|
|
icoextract
|
2021-09-26 12:46:18 +00:00
|
|
|
] ++ [
|
|
|
|
cabextract
|
2021-12-30 13:39:12 +00:00
|
|
|
p7zip
|
2022-11-27 09:42:12 +00:00
|
|
|
xdpyinfo
|
|
|
|
imagemagick
|
2022-12-17 10:02:37 +00:00
|
|
|
vkbasalt-cli
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
gamescope
|
2022-03-30 09:31:56 +00:00
|
|
|
mangohud
|
2022-11-27 09:42:12 +00:00
|
|
|
vmtouch
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
# Undocumented (subprocess.Popen())
|
|
|
|
lsb-release
|
|
|
|
pciutils
|
|
|
|
procps
|
2021-09-26 12:46:18 +00:00
|
|
|
];
|
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; {
|
|
|
|
description = "An 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;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ psydvl shamilton ];
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|