1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

Add python scripting support to Kig

svn path=/nixpkgs/trunk/; revision=25800
This commit is contained in:
Michael Raskin 2011-02-08 10:38:52 +00:00
parent 662fa0a13b
commit 7f0c493b1c
2 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{ kde, cmake, qt4, perl, libxml2, libxslt, openbabel, boost, readline, gmm, gsl
, xplanet, libspectre, pkgconfig, libqalculate
, xplanet, libspectre, pkgconfig, libqalculate, python
, kdelibs, automoc4, eigen, attica}:
kde.package {
@ -16,7 +16,13 @@ kde.package {
buildInputs = [ cmake qt4 perl libxml2 libxslt openbabel boost readline gmm
gsl xplanet kdelibs automoc4 eigen attica libspectre pkgconfig
libqalculate ];
libqalculate python ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${python}/include/${python.libPrefix}"
export NIX_LDFLAGS="$NIX_LDFLAGS -l${python.libPrefix} -lboost_python"
'';
cmakeFlags = '' -DBOOST_PYTHON_INCLUDES="${boost}/include" -DBOOST_PYTHON_LIBS="boost_python" -DKIG_ENABLE_PYTHON_SCRIPTING=1'';
meta = {
description = "KDE educational software";

View file

@ -1,5 +1,5 @@
{ kde, cmake, qt4, perl, libxml2, libxslt, openbabel, boost, readline, gmm, gsl
, xplanet, libspectre, pkgconfig, libqalculate
, xplanet, libspectre, pkgconfig, libqalculate, python
, kdelibs, automoc4, eigen, attica}:
kde.package {
@ -16,7 +16,13 @@ kde.package {
buildInputs = [ cmake qt4 perl libxml2 libxslt openbabel boost readline gmm
gsl xplanet kdelibs automoc4 eigen attica libspectre pkgconfig
libqalculate ];
libqalculate python ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${python}/include/${python.libPrefix}"
export NIX_LDFLAGS="$NIX_LDFLAGS -l${python.libPrefix} -lboost_python"
'';
cmakeFlags = '' -DBOOST_PYTHON_INCLUDES="${boost}/include" -DBOOST_PYTHON_LIBS="boost_python" -DKIG_ENABLE_PYTHON_SCRIPTING=1'';
meta = {
description = "KDE Educative software";