2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, intltool, json_c, lcms2, libpng, librsvg, gobject-introspection, hicolor-icon-theme
|
2019-05-22 12:03:39 +01:00
|
|
|
, gdk-pixbuf, pkgconfig, python2Packages, scons, swig, wrapGAppsHook }:
|
2013-03-06 22:08:30 +00:00
|
|
|
|
2016-09-26 08:45:33 +01:00
|
|
|
let
|
2017-07-03 20:21:50 +01:00
|
|
|
inherit (python2Packages) python pycairo pygobject3 numpy;
|
2016-09-26 08:45:33 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2013-03-06 22:08:30 +00:00
|
|
|
name = "mypaint-${version}";
|
2017-07-03 20:21:50 +01:00
|
|
|
version = "1.2.1";
|
2013-03-06 22:08:30 +00:00
|
|
|
|
2017-07-03 20:21:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mypaint";
|
|
|
|
repo = "mypaint";
|
|
|
|
rev = "bcf5a28d38bbd586cc9d4cee223f849fa303864f";
|
|
|
|
sha256 = "1zwx7n629vz1jcrqjqmw6vl6sxdf81fq6a5jzqiga8167gg8s9pf";
|
|
|
|
fetchSubmodules = true;
|
2013-03-06 22:08:30 +00:00
|
|
|
};
|
|
|
|
|
2018-06-06 11:13:15 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool pkgconfig scons swig wrapGAppsHook
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection # for setup hook
|
2018-06-06 11:13:15 +01:00
|
|
|
];
|
2013-11-24 15:33:50 +00:00
|
|
|
|
2018-06-06 11:13:15 +01:00
|
|
|
buildInputs = [
|
2019-05-22 12:03:39 +01:00
|
|
|
gtk3 gdk-pixbuf json_c lcms2 libpng librsvg pycairo pygobject3 python hicolor-icon-theme
|
2018-06-06 11:13:15 +01:00
|
|
|
];
|
2017-07-03 20:21:50 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
2013-03-06 22:08:30 +00:00
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
postInstall = ''
|
2013-11-23 17:09:39 +00:00
|
|
|
sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
|
2017-07-03 20:21:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix PYTHONPATH : $PYTHONPATH)
|
2013-03-06 22:08:30 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A graphics application for digital painters";
|
2017-07-03 20:21:50 +01:00
|
|
|
homepage = http://mypaint.org/;
|
2013-03-06 22:08:30 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2017-07-03 20:21:50 +01:00
|
|
|
maintainers = with maintainers; [ goibhniu jtojnar ];
|
2013-03-06 22:08:30 +00:00
|
|
|
};
|
|
|
|
}
|