nixpkgs/pkgs/applications/office/zim/default.nix

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

46 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, python3Packages, gtk3, gobject-introspection, wrapGAppsHook, gnome }:
# TODO: Declare configuration options for the following optional dependencies:
# - File stores: hg, git, bzr
# - Included plugins depenencies: dot, ditaa, dia, any other?
# - pyxdg: Need to make it work first (see setupPyInstallFlags).
2019-04-06 14:15:39 +02:00
python3Packages.buildPythonApplication rec {
2021-08-06 09:20:07 +02:00
pname = "zim";
version = "0.74.3";
src = fetchurl {
2021-08-06 09:20:07 +02:00
url = "https://zim-wiki.org/downloads/zim-${version}.tar.gz";
sha256 = "sha256-3ehPIkhsf1JnC9Qx3kQ6ilvRaBB7auBm2C1HOuNGzRU=";
};
buildInputs = [ gtk3 gobject-introspection gnome.adwaita-icon-theme ];
2019-04-06 14:15:39 +02:00
propagatedBuildInputs = with python3Packages; [ pyxdg pygobject3 ];
# see https://github.com/NixOS/nixpkgs/issues/56943#issuecomment-1131643663
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(--prefix XDG_DATA_DIRS : $out/share)
makeWrapperArgs+=(--argv0 $out/bin/.zim-wrapped)
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
2016-03-13 21:43:42 +01:00
# RuntimeError: could not create GtkClipboard object
doCheck = false;
checkPhase = ''
2021-08-06 09:20:07 +02:00
${python3Packages.python.interpreter} test.py
2016-03-13 21:43:42 +01:00
'';
meta = with lib; {
2017-06-18 12:19:16 +02:00
description = "A desktop wiki";
2021-08-06 09:20:07 +02:00
homepage = "https://zim-wiki.org/";
changelog = "https://github.com/zim-desktop-wiki/zim-desktop-wiki/blob/${version}/CHANGELOG.md";
2017-06-18 12:19:16 +02:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ pSub ];
broken = stdenv.isDarwin; # https://github.com/NixOS/nixpkgs/pull/52658#issuecomment-449565790
};
}