7dfbf0eba7
* If the environment variable buildCommand is set, then eval that instead of doing the build phases. This is used by the runCommand function in all-packages.nix to allow one-lines like foo = runCommand "foo" {} "mkdir $out; echo foo > $out/foo"; svn path=/nixpkgs/trunk/; revision=7298
23 lines
426 B
Bash
23 lines
426 B
Bash
source $stdenv/setup
|
|
source $substitute
|
|
|
|
configurePhase() {
|
|
substituteInPlace "setup.cfg" \
|
|
--replace "/usr/local/include" "$sqlite/include" \
|
|
--replace "/usr/local/lib" "$sqlite/lib"
|
|
cp setup.cfg /tmp
|
|
}
|
|
configurePhase=configurePhase
|
|
|
|
buildPhase() {
|
|
$python/bin/python setup.py build
|
|
}
|
|
buildPhase=buildPhase
|
|
|
|
installPhase() {
|
|
$python/bin/python setup.py install --prefix=$out
|
|
}
|
|
installPhase=installPhase
|
|
|
|
genericBuild
|