nixpkgs/pkgs/by-name/mo/morphosis/package.nix

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

75 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-06-08 00:57:02 -06:00
{
lib,
appstream,
blueprint-compiler,
desktop-file-utils,
2024-11-19 04:48:15 -07:00
fetchFromGitLab,
glib,
2024-06-08 00:57:02 -06:00
gobject-introspection,
2024-11-19 04:48:15 -07:00
gtk4,
2024-06-08 00:57:02 -06:00
libadwaita,
meson,
ninja,
2024-11-19 04:48:15 -07:00
nix-update-script,
2024-06-08 00:57:02 -06:00
pandoc,
pkg-config,
2024-11-19 04:48:15 -07:00
python3Packages,
2024-06-08 00:57:02 -06:00
webkitgtk_6_0,
wrapGAppsHook4,
}:
2024-11-19 04:48:15 -07:00
2024-06-08 00:57:02 -06:00
python3Packages.buildPythonApplication rec {
pname = "morphosis";
2024-11-19 04:48:15 -07:00
version = "1.4.1";
2024-06-08 00:57:02 -06:00
pyproject = false;
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "morphosis";
2024-11-19 04:48:15 -07:00
rev = "refs/tags/v${version}";
hash = "sha256-ZpxenBqC5qr7yNwjld0u7gSBQfL7Kpa4FWE9gkzG0hg=";
2024-06-08 00:57:02 -06:00
};
2024-11-19 04:48:15 -07:00
strictDeps = true;
2024-06-08 00:57:02 -06:00
nativeBuildInputs = [
appstream
blueprint-compiler
desktop-file-utils
2024-11-19 04:48:15 -07:00
glib # For `glib-compile-schemas`
2024-06-08 00:57:02 -06:00
gobject-introspection
2024-11-19 04:48:15 -07:00
gtk4 # For `gtk-update-icon-cache`
2024-06-08 00:57:02 -06:00
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
libadwaita
webkitgtk_6_0
];
dependencies = with python3Packages; [ pygobject3 ];
dontWrapGApps = true;
makeWrapperArgs = [
2024-11-19 04:48:15 -07:00
"\${gappsWrapperArgs[@]}"
2024-06-08 00:57:02 -06:00
"--prefix PATH : ${lib.makeBinPath [ pandoc ]}"
];
2024-11-19 04:48:15 -07:00
passthru = {
updateScript = nix-update-script { };
};
2024-06-08 00:57:02 -06:00
meta = {
description = "Convert your documents";
2024-11-19 04:48:15 -07:00
homepage = "https://gitlab.gnome.org/World/morphosis";
2024-06-08 00:57:02 -06:00
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "morphosis";
platforms = lib.platforms.linux;
};
}