2013-11-24 16:33:50 +01:00
|
|
|
{ stdenv, fetchurl, gettext, glib, gtk, hicolor_icon_theme, json_c
|
|
|
|
, lcms2, libpng , makeWrapper, pkgconfig, pygtk, python, pythonPackages
|
|
|
|
, scons, swig
|
2013-03-06 23:08:30 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mypaint-${version}";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/mypaint/${name}.tar.bz2";
|
|
|
|
sha256 = "0f7848hr65h909c0jkcx616flc0r4qh53g3kd1cgs2nr1pjmf3bq";
|
|
|
|
};
|
|
|
|
|
2013-11-24 16:33:50 +01:00
|
|
|
buildInputs = [
|
2013-03-06 23:08:30 +01:00
|
|
|
gettext glib gtk json_c lcms2 libpng makeWrapper pkgconfig pygtk
|
|
|
|
python scons swig
|
|
|
|
];
|
2013-11-24 16:33:50 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ hicolor_icon_theme pythonPackages.numpy ];
|
2013-03-06 23:08:30 +01:00
|
|
|
|
|
|
|
buildPhase = "scons prefix=$out";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
scons prefix=$out install
|
2013-11-23 18:09:39 +01:00
|
|
|
sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
|
2013-11-24 16:33:50 +01:00
|
|
|
wrapProgram $out/bin/mypaint \
|
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
--prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share"
|
2013-03-06 23:08:30 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A graphics application for digital painters";
|
|
|
|
homepage = http://mypaint.intilinux.com;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|