2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, gettext, glib, gtk2, hicolor_icon_theme, json_c
|
2016-11-18 13:30:42 +01:00
|
|
|
, lcms2, libpng , makeWrapper, pkgconfig, python2Packages
|
2013-11-24 16:33:50 +01:00
|
|
|
, scons, swig
|
2013-03-06 23:08:30 +01:00
|
|
|
}:
|
|
|
|
|
2016-09-26 09:45:33 +02:00
|
|
|
let
|
2016-11-18 13:30:42 +01:00
|
|
|
inherit (python2Packages) python pygtk numpy;
|
2016-09-26 09:45:33 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
2013-03-06 23:08:30 +01:00
|
|
|
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 = [
|
2016-09-11 23:24:51 +02:00
|
|
|
gettext glib gtk2 json_c lcms2 libpng makeWrapper pkgconfig pygtk
|
2013-03-06 23:08:30 +01:00
|
|
|
python scons swig
|
|
|
|
];
|
2013-11-24 16:33:50 +01:00
|
|
|
|
2016-09-26 09:45:33 +02:00
|
|
|
propagatedBuildInputs = [ hicolor_icon_theme 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 ];
|
|
|
|
};
|
|
|
|
}
|