Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
zim: remove postFixup, include checkPhase, disable tests
Browse files Browse the repository at this point in the history
- wrap-python.nix used to set sys.argv[0] to the name of the script, but
it now sets the path so we won't have to do it here anymore
- tests were not found, so the correct file is now invoked
  • Loading branch information
FRidh committed Jan 2, 2017
1 parent d68aba4 commit 21f6cb7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/applications/office/zim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ pythonPackages.buildPythonApplication rec {
export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped"
'';

postFixup = ''
substituteInPlace $out/bin/.zim-wrapped \
--replace "sys.argv[0] = 'zim'" "sys.argv[0] = '$out/bin/zim'"
# RuntimeError: could not create GtkClipboard object
doCheck = false;

checkPhase = ''
python test.py
'';

doCheck = true;

meta = {
description = "A desktop wiki";
Expand Down

0 comments on commit 21f6cb7

Please sign in to comment.