photocollage: init at 1.4.6
This commit is contained in:
parent
e550564812
commit
f192b4b584
1 changed files with 59 additions and 0 deletions
59
pkgs/by-name/ph/photocollage/package.nix
Normal file
59
pkgs/by-name/ph/photocollage/package.nix
Normal file
|
@ -0,0 +1,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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue