diff options
Diffstat (limited to 'pkgs/applications/graphics/mypaint/default.nix')
-rw-r--r-- | pkgs/applications/graphics/mypaint/default.nix | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/pkgs/applications/graphics/mypaint/default.nix b/pkgs/applications/graphics/mypaint/default.nix index c08bbbea766..1acaf4850eb 100644 --- a/pkgs/applications/graphics/mypaint/default.nix +++ b/pkgs/applications/graphics/mypaint/default.nix @@ -1,8 +1,22 @@ -{ stdenv, fetchFromGitHub, gtk3, intltool, json_c, lcms2, libpng, librsvg, gobject-introspection -, gdk-pixbuf, pkgconfig, python2Packages, scons, swig, wrapGAppsHook }: +{ stdenv +, fetchFromGitHub +, gtk3 +, intltool +, json_c +, lcms2 +, libpng +, librsvg +, gobject-introspection +, gdk-pixbuf +, pkgconfig +, python2 +, scons +, swig +, wrapGAppsHook +}: let - inherit (python2Packages) python pycairo pygobject3 numpy; + inherit (python2.pkgs) pycairo pygobject3 numpy; in stdenv.mkDerivation { pname = "mypaint"; version = "1.2.1"; @@ -16,18 +30,32 @@ in stdenv.mkDerivation { }; nativeBuildInputs = [ - intltool pkgconfig scons swig wrapGAppsHook + intltool + pkgconfig + scons + swig + wrapGAppsHook gobject-introspection # for setup hook ]; buildInputs = [ - gtk3 gdk-pixbuf json_c lcms2 libpng librsvg pycairo pygobject3 python + gtk3 + gdk-pixbuf + json_c + lcms2 + libpng + librsvg + pycairo + pygobject3 + python2 ]; - propagatedBuildInputs = [ numpy ]; + propagatedBuildInputs = [ + numpy + ]; postInstall = '' - sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint + sed -i -e 's|/usr/bin/env python2.7|${python2}/bin/python|' $out/bin/mypaint ''; preFixup = '' @@ -36,7 +64,7 @@ in stdenv.mkDerivation { meta = with stdenv.lib; { description = "A graphics application for digital painters"; - homepage = http://mypaint.org/; + homepage = "http://mypaint.org/"; license = licenses.gpl2Plus; platforms = platforms.linux; maintainers = with maintainers; [ goibhniu jtojnar ]; |