nixpkgs/pkgs/applications/graphics/mypaint/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, gtk3, intltool, json_c, lcms2, libpng, librsvg, gobject-introspection
2019-05-22 12:03:39 +01:00
, gdk-pixbuf, pkgconfig, python2Packages, scons, swig, wrapGAppsHook }:
let
2017-07-03 20:21:50 +01:00
inherit (python2Packages) python pycairo pygobject3 numpy;
2019-08-13 22:52:01 +01:00
in stdenv.mkDerivation {
pname = "mypaint";
2017-07-03 20:21:50 +01:00
version = "1.2.1";
2017-07-03 20:21:50 +01:00
src = fetchFromGitHub {
owner = "mypaint";
repo = "mypaint";
rev = "bcf5a28d38bbd586cc9d4cee223f849fa303864f";
sha256 = "1zwx7n629vz1jcrqjqmw6vl6sxdf81fq6a5jzqiga8167gg8s9pf";
fetchSubmodules = true;
};
nativeBuildInputs = [
intltool pkgconfig scons swig wrapGAppsHook
gobject-introspection # for setup hook
];
buildInputs = [
gtk3 gdk-pixbuf json_c lcms2 libpng librsvg pycairo pygobject3 python
];
2017-07-03 20:21:50 +01:00
propagatedBuildInputs = [ numpy ];
postInstall = ''
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)
'';
meta = with stdenv.lib; {
description = "A graphics application for digital painters";
2017-07-03 20:21:50 +01:00
homepage = http://mypaint.org/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
2017-07-03 20:21:50 +01:00
maintainers = with maintainers; [ goibhniu jtojnar ];
};
}