2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, gettext, glib, gtk2, hicolor_icon_theme, json_c
|
2016-11-18 12:30:42 +00:00
|
|
|
, lcms2, libpng , makeWrapper, pkgconfig, python2Packages
|
2013-11-24 15:33:50 +00:00
|
|
|
, scons, swig
|
2013-03-06 22:08:30 +00:00
|
|
|
}:
|
|
|
|
|
2016-09-26 08:45:33 +01:00
|
|
|
let
|
2016-11-18 12:30:42 +00:00
|
|
|
inherit (python2Packages) python pygtk numpy;
|
2016-09-26 08:45:33 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2013-03-06 22:08:30 +00:00
|
|
|
name = "mypaint-${version}";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/mypaint/${name}.tar.bz2";
|
|
|
|
sha256 = "0f7848hr65h909c0jkcx616flc0r4qh53g3kd1cgs2nr1pjmf3bq";
|
|
|
|
};
|
|
|
|
|
2013-11-24 15:33:50 +00:00
|
|
|
buildInputs = [
|
2016-09-11 22:24:51 +01:00
|
|
|
gettext glib gtk2 json_c lcms2 libpng makeWrapper pkgconfig pygtk
|
2013-03-06 22:08:30 +00:00
|
|
|
python scons swig
|
|
|
|
];
|
2013-11-24 15:33:50 +00:00
|
|
|
|
2016-09-26 08:45:33 +01:00
|
|
|
propagatedBuildInputs = [ hicolor_icon_theme numpy ];
|
2013-03-06 22:08:30 +00:00
|
|
|
|
|
|
|
buildPhase = "scons prefix=$out";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
scons prefix=$out install
|
2013-11-23 17:09:39 +00:00
|
|
|
sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
|
2013-11-24 15:33:50 +00:00
|
|
|
wrapProgram $out/bin/mypaint \
|
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
--prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share"
|
2013-03-06 22:08:30 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|