Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchFromGitHub,
wrapGAppsHook4,
meson,
ninja,
pkg-config,
appstream-glib,
desktop-file-utils,
gobject-introspection,
glib,
blueprint-compiler,
libadwaita,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "halftone";
version = "0.7.2";
src = fetchFromGitHub {
owner = "tfuxu";
repo = "halftone";
tag = version;
hash = "sha256-5hT6ulmUlOrFVL4nV0tfvgkKdYGusp+1rBINQy3ZvpI=";
};
format = "other";
dontWrapGApps = true;
nativeBuildInputs = [
appstream-glib
blueprint-compiler
desktop-file-utils
meson
ninja
pkg-config
wrapGAppsHook4
glib
gobject-introspection
];
buildInputs = [
libadwaita
];
propagatedBuildInputs = with python3Packages; [
pygobject3
wand
];
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
homepage = "https://github.com/tfuxu/halftone";
description = "Simple app for giving images that pixel-art style";
license = licenses.gpl3Plus;
mainProgram = "halftone";
maintainers = with maintainers; [ foo-dogsquared ];
platforms = platforms.linux;
};
}