Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions pkgs/by-name/gr/gradia/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
lib,
python3Packages,
fetchFromGitHub,
meson,
ninja,
appstream,
desktop-file-utils,
gobject-introspection,
wrapGAppsHook4,
blueprint-compiler,
libadwaita,
libportal-gtk4,
}:
python3Packages.buildPythonApplication rec {
pname = "gradia";
version = "1.4.3";
pyproject = false;

src = fetchFromGitHub {
owner = "AlexanderVanhee";
repo = "Gradia";
tag = "v${version}";
hash = "sha256-cH8aL1nvDNAnvN+TYAtGez5Ot5DmwpmxugBPS36rY+Q=";
};

nativeBuildInputs = [
meson
ninja
appstream
desktop-file-utils
gobject-introspection
wrapGAppsHook4
blueprint-compiler
];

buildInputs = [
libadwaita
libportal-gtk4
];

dependencies = with python3Packages; [
pygobject3
pillow
];

dontWrapGApps = true;

makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];

meta = {
description = "Make your screenshots ready for the world";
homepage = "https://github.com/AlexanderVanhee/Gradia";
changelog = "https://github.com/AlexanderVanhee/Gradia/releases/tag/${src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
Cameo007
quadradical
];
mainProgram = "gradia";
platforms = lib.platforms.linux;
};
}