nixpkgs/pkgs/applications/misc/bottles/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

112 lines
1.9 KiB
Nix
Raw Normal View History

{ 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
, lsb-release
, pciutils
, procps
, gamescope
, mangohud
, vkbasalt-cli
, vmtouch
2021-02-20 20:07:22 +00:00
}:
python3Packages.buildPythonApplication rec {
2022-11-22 13:59:09 +00:00
pname = "bottles-unwrapped";
version = "2022.12.14.1";
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;
sha256 = "sha256-hoWyXCP7/0m8akUGBJyuF2yQcRKR8C7MDBLUdPdtBgE=";
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; [
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
pillow
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 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/";
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;
};
}