Skip to content

Commit

Permalink
cherrytree: fix build (#72261)
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak authored and veprbl committed Oct 29, 2019
1 parent 9aea511 commit 3adeca3
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions pkgs/applications/misc/cherrytree/default.nix
@@ -1,8 +1,6 @@
{ stdenv, fetchurl, pythonPackages, gettext }:

with stdenv.lib;
stdenv.mkDerivation rec {
{ lib, fetchurl, pythonPackages, gettext }:

pythonPackages.buildPythonApplication rec {
pname = "cherrytree";
version = "0.38.9";

Expand All @@ -11,26 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "0xal09ijgxbzvp003s40xbrfnpq3ald1fw8nnpqq3yg7h6g6c5pw";
};

buildInputs = with pythonPackages;
[ python gettext wrapPython pygtk dbus-python pygtksourceview ];
nativeBuildInputs = [ gettext ];

pythonPath = with pythonPackages;
[ pygtk dbus-python pygtksourceview ];
propagatedBuildInputs = with pythonPackages; [ pygtk dbus-python pygtksourceview ];

patches = [ ./subprocess.patch ];

installPhase = ''
python setup.py install --prefix="$out"
for file in "$out"/bin/*; do
wrapProgram "$file" \
--prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
done
'';

doCheck = false;

meta = {
meta = with lib; {
description = "An hierarchical note taking application";
longDescription = ''
Cherrytree is an hierarchical note taking application,
Expand All @@ -42,9 +29,8 @@ stdenv.mkDerivation rec {
around your hard drive can be conveniently placed into a
Cherrytree document where you can easily find it.
'';
homepage = http://www.giuspen.com/cherrytree;
homepage = "http://www.giuspen.com/cherrytree";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
maintainers = with maintainers; [ AndersonTorres ];
};
}

0 comments on commit 3adeca3

Please sign in to comment.