3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/bottles/default.nix

114 lines
1.9 KiB
Nix
Raw Permalink Normal View History

{ 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-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 15:05:31 +01: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 15:05:31 +01:00
sha256 = "sha256-9oEC+ksgHz2HP4jVwTbLzjqc8WG1+S8hmVgl2dcuPB0=";
2021-02-20 20:07:22 +00:00
};
patches = [
./vulkan_icd.patch
];
2022-12-14 17:57:59 +00:00
# https://github.com/bottlesdevs/Bottles/wiki/Packaging
2021-02-20 20:07:22 +00:00
nativeBuildInputs = [
blueprint-compiler
2021-02-20 20:07:22 +00:00
meson
ninja
pkg-config
wrapGAppsHook4
gtk4 # gtk4-update-icon-cache
2021-02-20 20:07:22 +00:00
appstream-glib
desktop-file-utils
];
buildInputs = [
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
pyyaml
requests
2021-02-20 20:07:22 +00:00
pygobject3
patool
markdown
fvs
pefile
urllib3
chardet
certifi
idna
orjson
icoextract
] ++ [
cabextract
p7zip
xdpyinfo
imagemagick
vkbasalt-cli
gamescope
mangohud
vmtouch
# Undocumented (subprocess.Popen())
lsb-release
pciutils
procps
];
2021-02-20 20:07:22 +00:00
format = "other";
dontWrapGApps = true; # prevent double wrapping
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
passthru.updateScript = gitUpdater { };
2022-04-20 23:19:45 +01:00
2021-02-20 20:07:22 +00:00
meta = with lib; {
description = "An easy-to-use wineprefix manager";
2021-04-26 14:26:26 +01:00
homepage = "https://usebottles.com/";
downloadPage = "https://github.com/bottlesdevs/Bottles/releases";
2021-02-20 20:07:22 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ psydvl shamilton ];
2021-02-20 20:07:22 +00:00
platforms = platforms.linux;
};
}