mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 04:57:26 +03:00
eb04659fc2
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)
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, python3Packages
|
|
, fetchPypi
|
|
, wrapGAppsHook3
|
|
, gtk3
|
|
, gobject-introspection
|
|
, libcanberra-gtk3
|
|
, poppler_gi
|
|
, withGstreamer ? stdenv.isLinux
|
|
, withVLC ? stdenv.isLinux
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pympress";
|
|
version = "1.8.5";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "pympress";
|
|
hash = "sha256-Kb05EV0F8lTamTq7pC1UoOkYf04s58NjMksVE2xTC/Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
poppler_gi
|
|
] ++ lib.optional withGstreamer libcanberra-gtk3;
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pycairo
|
|
pygobject3
|
|
setuptools
|
|
watchdog
|
|
] ++ lib.optional withVLC python-vlc;
|
|
|
|
doCheck = false; # there are no tests
|
|
|
|
meta = with lib; {
|
|
description = "Simple yet powerful PDF reader designed for dual-screen presentations";
|
|
mainProgram = "pympress";
|
|
license = licenses.gpl2Plus;
|
|
homepage = "https://cimbali.github.io/pympress/";
|
|
maintainers = [ maintainers.tbenst ];
|
|
};
|
|
}
|