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

42 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, buildPythonPackage, pythonPackages, pygtk, pygobject, python }:
#
# 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).
#
buildPythonPackage rec {
name = "zim-${version}";
2015-08-11 19:10:15 +02:00
version = "0.63";
namePrefix = "";
src = fetchurl {
2014-11-26 11:19:36 +01:00
url = "http://zim-wiki.org/downloads/${name}.tar.gz";
2015-08-11 19:10:15 +02:00
sha256 = "077vf4h0hjmbk8bxj9l0z9rxcb3dw642n32lvfn6vjdna1qm910m";
};
propagatedBuildInputs = [ pythonPackages.sqlite3 pygtk pythonPackages.pyxdg pygobject ];
preBuild = ''
mkdir -p /tmp/home
export HOME="/tmp/home"
sed -i '/zim_install_class,/d' setup.py
'';
preFixup = ''
export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped"
'';
# Testing fails.
doCheck = false;
meta = {
description = "A desktop wiki";
homepage = http://zim-wiki.org;
license = stdenv.lib.licenses.gpl2Plus;
};
}