|
1 |
| -{ stdenv, fetchurl, gettext, glib, gtk2, hicolor_icon_theme, json_c |
2 |
| -, lcms2, libpng , makeWrapper, pkgconfig, python2Packages |
3 |
| -, scons, swig |
4 |
| -}: |
| 1 | +{ stdenv, fetchFromGitHub, gtk3, intltool, json_c, lcms2, libpng, librsvg, |
| 2 | + pkgconfig, python2Packages, scons, swig, wrapGAppsHook }: |
5 | 3 |
|
6 | 4 | let
|
7 |
| - inherit (python2Packages) python pygtk numpy; |
| 5 | + inherit (python2Packages) python pycairo pygobject3 numpy; |
8 | 6 | in stdenv.mkDerivation rec {
|
9 | 7 | name = "mypaint-${version}";
|
10 |
| - version = "1.1.0"; |
| 8 | + version = "1.2.1"; |
11 | 9 |
|
12 |
| - src = fetchurl { |
13 |
| - url = "http://download.gna.org/mypaint/${name}.tar.bz2"; |
14 |
| - sha256 = "0f7848hr65h909c0jkcx616flc0r4qh53g3kd1cgs2nr1pjmf3bq"; |
| 10 | + src = fetchFromGitHub { |
| 11 | + owner = "mypaint"; |
| 12 | + repo = "mypaint"; |
| 13 | + rev = "bcf5a28d38bbd586cc9d4cee223f849fa303864f"; |
| 14 | + sha256 = "1zwx7n629vz1jcrqjqmw6vl6sxdf81fq6a5jzqiga8167gg8s9pf"; |
| 15 | + fetchSubmodules = true; |
15 | 16 | };
|
16 | 17 |
|
17 |
| - buildInputs = [ |
18 |
| - gettext glib gtk2 json_c lcms2 libpng makeWrapper pkgconfig pygtk |
19 |
| - python scons swig |
20 |
| - ]; |
| 18 | + nativeBuildInputs = [ intltool pkgconfig scons swig wrapGAppsHook ]; |
21 | 19 |
|
22 |
| - propagatedBuildInputs = [ hicolor_icon_theme numpy ]; |
| 20 | + buildInputs = [ gtk3 json_c lcms2 libpng librsvg pycairo pygobject3 python ]; |
| 21 | + |
| 22 | + propagatedBuildInputs = [ numpy ]; |
23 | 23 |
|
24 | 24 | buildPhase = "scons prefix=$out";
|
25 | 25 |
|
26 | 26 | installPhase = ''
|
27 | 27 | scons prefix=$out install
|
28 | 28 | sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
|
29 |
| - wrapProgram $out/bin/mypaint \ |
30 |
| - --prefix PYTHONPATH : $PYTHONPATH \ |
31 |
| - --prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share" |
| 29 | + ''; |
| 30 | + |
| 31 | + preFixup = '' |
| 32 | + gappsWrapperArgs+=(--prefix PYTHONPATH : $PYTHONPATH) |
32 | 33 | '';
|
33 | 34 |
|
34 | 35 | meta = with stdenv.lib; {
|
35 | 36 | description = "A graphics application for digital painters";
|
36 |
| - homepage = http://mypaint.intilinux.com; |
| 37 | + homepage = http://mypaint.org/; |
37 | 38 | license = licenses.gpl2Plus;
|
38 | 39 | platforms = platforms.linux;
|
39 |
| - maintainers = [ maintainers.goibhniu ]; |
| 40 | + maintainers = with maintainers; [ goibhniu jtojnar ]; |
40 | 41 | };
|
41 | 42 | }
|
0 commit comments