Skip to content

Commit e02d40c

Browse files
jtojnarpSub
authored andcommittedJul 3, 2017
mypaint: 1.1.0 -> 1.2.1 (#27004)
1 parent c64d8ea commit e02d40c

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed
 

‎lib/maintainers.nix

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267
jpierre03 = "Jean-Pierre PRUNARET <nix@prunetwork.fr>";
268268
jpotier = "Martin Potier <jpo.contributes.to.nixos@marvid.fr>";
269269
jraygauthier = "Raymond Gauthier <jraygauthier@gmail.com>";
270+
jtojnar = "Jan Tojnar <jtojnar@gmail.com>";
270271
juliendehos = "Julien Dehos <dehos@lisic.univ-littoral.fr>";
271272
jwiegley = "John Wiegley <johnw@newartisans.com>";
272273
jwilberding = "Jordan Wilberding <jwilberding@afiniate.com>";
+20-19
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
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 }:
53

64
let
7-
inherit (python2Packages) python pygtk numpy;
5+
inherit (python2Packages) python pycairo pygobject3 numpy;
86
in stdenv.mkDerivation rec {
97
name = "mypaint-${version}";
10-
version = "1.1.0";
8+
version = "1.2.1";
119

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;
1516
};
1617

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 ];
2119

22-
propagatedBuildInputs = [ hicolor_icon_theme numpy ];
20+
buildInputs = [ gtk3 json_c lcms2 libpng librsvg pycairo pygobject3 python ];
21+
22+
propagatedBuildInputs = [ numpy ];
2323

2424
buildPhase = "scons prefix=$out";
2525

2626
installPhase = ''
2727
scons prefix=$out install
2828
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)
3233
'';
3334

3435
meta = with stdenv.lib; {
3536
description = "A graphics application for digital painters";
36-
homepage = http://mypaint.intilinux.com;
37+
homepage = http://mypaint.org/;
3738
license = licenses.gpl2Plus;
3839
platforms = platforms.linux;
39-
maintainers = [ maintainers.goibhniu ];
40+
maintainers = with maintainers; [ goibhniu jtojnar ];
4041
};
4142
}

0 commit comments

Comments
 (0)
Please sign in to comment.