diff --git a/pkgs/by-name/po/poliedros/package.nix b/pkgs/by-name/po/poliedros/package.nix new file mode 100644 index 000000000000..c1d36e41db39 --- /dev/null +++ b/pkgs/by-name/po/poliedros/package.nix @@ -0,0 +1,60 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + ninja, + meson, + pkg-config, + wrapGAppsHook4, + glib, + desktop-file-utils, + appstream-glib, + gobject-introspection, + libadwaita, + nix-update-script, +}: +let + version = "1.0.1"; +in +python3Packages.buildPythonApplication { + pname = "poliedros"; + inherit version; + pyproject = false; + + src = fetchFromGitHub { + owner = "kriptolix"; + repo = "Poliedros"; + tag = "v${version}"; + hash = "sha256-1lYEsfyl6ckH1TmMLRP+flnm77INiA8ntnGVWnwpLvs="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + wrapGAppsHook4 + glib + desktop-file-utils + appstream-glib + gobject-introspection + ]; + + pythonPath = [ python3Packages.pygobject3 ]; + + buildInputs = [ libadwaita ]; + + dontWrapGApps = true; + + makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Multi-type dice roller"; + homepage = "https://github.com/kriptolix/Poliedros"; + changelog = "https://github.com/kriptolix/Poliedros/releases/tag/v${version}"; + license = lib.licenses.gpl3Plus; + mainProgram = "poliedros"; + maintainers = [ lib.maintainers.awwpotato ]; + }; +}