mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
mypaint: 1.2.1 → 2.0.0
This commit is contained in:
parent
eeaad8d225
commit
6fecb16af6
@ -7,59 +7,81 @@
|
|||||||
, libpng
|
, libpng
|
||||||
, librsvg
|
, librsvg
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
|
, libmypaint
|
||||||
|
, mypaint-brushes
|
||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, python2
|
, python3
|
||||||
, scons
|
|
||||||
, swig
|
, swig
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (python2.pkgs) pycairo pygobject3 numpy;
|
inherit (python3.pkgs) pycairo pygobject3 numpy buildPythonApplication;
|
||||||
in stdenv.mkDerivation {
|
in buildPythonApplication rec {
|
||||||
pname = "mypaint";
|
pname = "mypaint";
|
||||||
version = "1.2.1";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mypaint";
|
owner = "mypaint";
|
||||||
repo = "mypaint";
|
repo = "mypaint";
|
||||||
rev = "bcf5a28d38bbd586cc9d4cee223f849fa303864f";
|
rev = "v${version}";
|
||||||
sha256 = "1zwx7n629vz1jcrqjqmw6vl6sxdf81fq6a5jzqiga8167gg8s9pf";
|
sha256 = "180kyilhf81ndhwl1hlvy82gh6hxpcvka2d1nkghbpgy431rls6r";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
intltool
|
intltool
|
||||||
pkgconfig
|
pkgconfig
|
||||||
scons
|
|
||||||
swig
|
swig
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
gobject-introspection # for setup hook
|
gobject-introspection # for setup hook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk3
|
gtk3
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
|
libmypaint
|
||||||
|
mypaint-brushes
|
||||||
json_c
|
json_c
|
||||||
lcms2
|
lcms2
|
||||||
libpng
|
libpng
|
||||||
librsvg
|
librsvg
|
||||||
pycairo
|
pycairo
|
||||||
pygobject3
|
pygobject3
|
||||||
python2
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
|
pycairo
|
||||||
|
pygobject3
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
checkInputs = [
|
||||||
sed -i -e 's|/usr/bin/env python2.7|${python2}/bin/python|' $out/bin/mypaint
|
gtk3
|
||||||
|
];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
${python3.interpreter} setup.py build
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
installPhase = ''
|
||||||
gappsWrapperArgs+=(--prefix PYTHONPATH : $PYTHONPATH)
|
runHook preInstall
|
||||||
|
|
||||||
|
${python3.interpreter} setup.py managed_install --prefix=$out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
HOME=$TEMPDIR ${python3.interpreter} setup.py test
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user