chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ph / photocollage / package.nix
blob46c6bedd7710415213e70566a477cdd637641129
1 { lib
2 , python3Packages
3 , fetchFromGitHub
4 , gettext
5 , gdk-pixbuf
6 , gobject-introspection
7 , wrapGAppsHook3
8 }:
10 python3Packages.buildPythonApplication rec {
11   pname = "photocollage";
12   version = "1.4.6";
14   src = fetchFromGitHub {
15     owner = "adrienverge";
16     repo = "PhotoCollage";
17     rev = "v${version}";
18     hash = "sha256-jDb2mFsok8TNi9+A/FAieqo7YbAUsmrFRBGwdGv71Xg=";
19   };
21   propagatedBuildInputs = with python3Packages; [
22     pillow
23     pycairo
24     pygobject3
25   ];
27   buildInputs = [
28     gdk-pixbuf
29   ];
31   nativeBuildInputs = [
32     gettext
33     gobject-introspection
34     wrapGAppsHook3
35   ];
37   dontWrapGApps = true;
39   preFixup = ''
40     makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
41   '';
43   postInstall = ''
44     # Based on the debian package's list of files. Link:
45     # https://packages.debian.org/bookworm/all/photocollage/filelist
46     install -Dm0644 ./data/photocollage.desktop $out/share/applications/photocollage.desktop
47     install -Dm0644 ./data/photocollage.appdata.xml $out/share/appdata/photocollage.appdata.xml
48     cp -r ./data/icons $out/share/icons
49   '';
51   meta = {
52     description = "Graphical tool to make photo collage posters";
53     homepage = "https://github.com/adrienverge/PhotoCollage";
54     license = lib.licenses.gpl2Plus;
55     maintainers = with lib.maintainers; [ eliandoran ];
56     platforms = lib.platforms.linux;
57     mainProgram = "photocollage";
58   };