nixpkgs/pkgs/by-name/ph/photocollage/package.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
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)
2024-04-27 02:23:22 +02:00

60 lines
1.4 KiB
Nix

{ lib
, python3Packages
, fetchFromGitHub
, gettext
, gdk-pixbuf
, gobject-introspection
, wrapGAppsHook3
}:
python3Packages.buildPythonApplication rec {
pname = "photocollage";
version = "1.4.6";
src = fetchFromGitHub {
owner = "adrienverge";
repo = "PhotoCollage";
rev = "v${version}";
hash = "sha256-jDb2mFsok8TNi9+A/FAieqo7YbAUsmrFRBGwdGv71Xg=";
};
propagatedBuildInputs = with python3Packages; [
pillow
pycairo
pygobject3
];
buildInputs = [
gdk-pixbuf
];
nativeBuildInputs = [
gettext
gobject-introspection
wrapGAppsHook3
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
postInstall = ''
# Based on the debian package's list of files. Link:
# https://packages.debian.org/bookworm/all/photocollage/filelist
install -Dm0644 ./data/photocollage.desktop $out/share/applications/photocollage.desktop
install -Dm0644 ./data/photocollage.appdata.xml $out/share/appdata/photocollage.appdata.xml
cp -r ./data/icons $out/share/icons
'';
meta = {
description = "Graphical tool to make photo collage posters";
homepage = "https://github.com/adrienverge/PhotoCollage";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ eliandoran ];
platforms = lib.platforms.linux;
mainProgram = "photocollage";
};
}