mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00

This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, wrapGAppsHook3
|
|
, gobject-introspection
|
|
, gitUpdater
|
|
}: python3.pkgs.buildPythonApplication rec {
|
|
pname = "KlipperScreen";
|
|
version = "0.3.2";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jordanruthe";
|
|
repo = "KlipperScreen";
|
|
rev = "v${version}";
|
|
hash = "sha256-LweO5EVWr3OxziHrjtQDdWyUBCVUJ17afkw7RCZWgcg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
jinja2
|
|
netifaces
|
|
requests
|
|
websocket-client
|
|
pycairo
|
|
pygobject3
|
|
mpv
|
|
six
|
|
dbus-python
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
mkdir -p $out/bin
|
|
cp -r . $out/dist
|
|
gappsWrapperArgs+=(--set PYTHONPATH "$PYTHONPATH")
|
|
wrapGApp $out/dist/screen.py
|
|
ln -s $out/dist/screen.py $out/bin/KlipperScreen
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { url = meta.homepage; };
|
|
|
|
meta = with lib; {
|
|
description = "Touchscreen GUI for the Klipper 3D printer firmware";
|
|
homepage = "https://github.com/jordanruthe/KlipperScreen";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ cab404 ];
|
|
mainProgram = "KlipperScreen";
|
|
};
|
|
}
|