2014-08-14 07:00:00 +02:00
|
|
|
{ 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";
|
2014-08-14 07:00:00 +02:00
|
|
|
namePrefix = "";
|
2015-11-20 13:48:30 +01:00
|
|
|
|
2014-08-14 07:00:00 +02:00
|
|
|
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";
|
2014-08-14 07:00:00 +02:00
|
|
|
};
|
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
propagatedBuildInputs = [ pythonPackages.sqlite3 pygtk pythonPackages.pyxdg pygobject ];
|
2014-08-14 07:00:00 +02:00
|
|
|
|
|
|
|
preBuild = ''
|
2014-09-04 23:53:54 +02:00
|
|
|
mkdir -p /tmp/home
|
|
|
|
export HOME="/tmp/home"
|
2014-08-14 07:00:00 +02:00
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
sed -i '/zim_install_class,/d' setup.py
|
2014-08-14 07:00:00 +02:00
|
|
|
'';
|
2014-09-04 23:53:54 +02:00
|
|
|
|
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
preFixup = ''
|
|
|
|
export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped"
|
2014-09-04 23:53:54 +02:00
|
|
|
'';
|
2014-08-14 07:00:00 +02:00
|
|
|
# Testing fails.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A desktop wiki";
|
|
|
|
homepage = http://zim-wiki.org;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|