mypaint: format with nixpkgs-fmt

This commit is contained in:
Jan Tojnar 2019-11-28 14:33:15 +01:00
parent 0243f4455b
commit 80051c2247
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -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,15 +30,29 @@ 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
@ -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 ];