blob: f02efb9f2e901051b6e309dc272a5d95e542cea9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, python3Packages
, fetchFromGitHub
, gettext
, gdk-pixbuf
, gobject-introspection
, wrapGAppsHook
}:
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
wrapGAppsHook
];
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";
};
}
|