mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
* Added ClearSilver 0.10.3.
* Added SQLite 3.3. * Added PySQLite 2.2.2. * Added Trac 0.9.5. To get you started; a new project environment is created by executing: $ trac-admin /path/to/trac_project_env initenv Running the server can be done by executing: $ tracd --port 8000 /path/to/projectenv Trac is then available at http://localhost:8000/projectenv. More information available at http://www.edgewall.com/trac/. svn path=/nixpkgs/trunk/; revision=5195
This commit is contained in:
parent
7f239275aa
commit
3c8a7d98b0
9
pkgs/development/libraries/clearsilver/builder.sh
Normal file
9
pkgs/development/libraries/clearsilver/builder.sh
Normal file
@ -0,0 +1,9 @@
|
||||
source $stdenv/setup
|
||||
|
||||
mkdir -p $out
|
||||
mkdir -p $out/site-packages
|
||||
|
||||
export PYTHON_SITE=$out/site-packages
|
||||
configureFlags="--with-python=$python/bin/python --disable-apache --disable-perl --disable-ruby --disable-java --disable-csharp"
|
||||
|
||||
genericBuild
|
12
pkgs/development/libraries/clearsilver/default.nix
Normal file
12
pkgs/development/libraries/clearsilver/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{stdenv, fetchurl, python}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name="clearsilver-0.10.3";
|
||||
src = fetchurl {
|
||||
url = "http://www.clearsilver.net/downloads/clearsilver-0.10.3.tar.gz";
|
||||
md5 = "ff4104b0e58bca1b61d528edbd902769";
|
||||
};
|
||||
builder = ./builder.sh;
|
||||
|
||||
inherit stdenv python;
|
||||
}
|
22
pkgs/development/libraries/pysqlite/builder.sh
Normal file
22
pkgs/development/libraries/pysqlite/builder.sh
Normal file
@ -0,0 +1,22 @@
|
||||
source $stdenv/setup
|
||||
source $substituter
|
||||
|
||||
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
|
12
pkgs/development/libraries/pysqlite/default.nix
Normal file
12
pkgs/development/libraries/pysqlite/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{stdenv, fetchurl, python, sqlite, substituter}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pysqlite-2.2.2";
|
||||
src = fetchurl {
|
||||
url = "http://initd.org/pub/software/pysqlite/releases/2.2/2.2.2/pysqlite-2.2.2.tar.gz";
|
||||
md5 = "3260547d3f11c85613b2de8ed529a4fc";
|
||||
};
|
||||
builder = ./builder.sh;
|
||||
|
||||
inherit stdenv python sqlite substituter;
|
||||
}
|
11
pkgs/development/libraries/sqlite-3.3/default.nix
Normal file
11
pkgs/development/libraries/sqlite-3.3/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "sqlite-3.3.5";
|
||||
src = fetchurl {
|
||||
url = "http://www.sqlite.org/sqlite-3.3.5.tar.gz";
|
||||
md5 = "dd2a7b6f2a07a4403a0b5e17e8ed5b88";
|
||||
};
|
||||
configureFlags = "--enable-threadsafe";
|
||||
inherit stdenv;
|
||||
}
|
13
pkgs/misc/trac/builder.sh
Normal file
13
pkgs/misc/trac/builder.sh
Normal file
@ -0,0 +1,13 @@
|
||||
source $stdenv/setup
|
||||
source $makeWrapper
|
||||
|
||||
unpackPhase
|
||||
mkdir -p $out
|
||||
cd $name
|
||||
$python/bin/python setup.py install --prefix=$out
|
||||
|
||||
for i in $(cd $out/bin && ls); do
|
||||
mv $out/bin/$i $out/bin/.orig-$i
|
||||
makeWrapper $out/bin/.orig-$i $out/bin/$i \
|
||||
--set PYTHONPATH "$python/site-packages:$out/lib/python2.4/site-packages:$pysqlite/lib/python2.4/site-packages:$subversion/lib/svn-python:$clearsilver/site-packages"
|
||||
done
|
13
pkgs/misc/trac/default.nix
Normal file
13
pkgs/misc/trac/default.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{stdenv, fetchurl, python, clearsilver, subversion, sqlite, pysqlite, makeWrapper}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "trac-0.9.5";
|
||||
src = fetchurl {
|
||||
url = "http://ftp.edgewall.com/pub/trac/trac-0.9.5.tar.gz";
|
||||
md5 = "3b7d708eaf905cc6ba2b6b10a09a8cf4";
|
||||
};
|
||||
builder = ./builder.sh;
|
||||
inherit stdenv python subversion clearsilver sqlite pysqlite makeWrapper;
|
||||
}
|
||||
|
||||
|
@ -1077,6 +1077,10 @@ rec {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
sqlite3 = (import ../development/libraries/sqlite-3.3) {
|
||||
inherit stdenv fetchurl;
|
||||
};
|
||||
|
||||
lcms = (import ../development/libraries/lcms) {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
@ -1330,6 +1334,10 @@ rec {
|
||||
inherit fetchurl stdenv mysql libtool zlib unixODBC;
|
||||
};
|
||||
|
||||
clearsilver = import ../development/libraries/clearsilver {
|
||||
inherit fetchurl stdenv python;
|
||||
};
|
||||
|
||||
### DEVELOPMENT / LIBRARIES / JAVA
|
||||
|
||||
saxon = (import ../development/libraries/java/saxon) {
|
||||
@ -2429,6 +2437,28 @@ rec {
|
||||
};
|
||||
|
||||
martyr = (import ../development/libraries/martyr) {
|
||||
inherit stdenv fetchurl apacheAnt;
|
||||
inherit stdenv fetchurl apacheAnt;
|
||||
};
|
||||
|
||||
trac = (import ../misc/trac) {
|
||||
inherit stdenv fetchurl python clearsilver makeWrapper;
|
||||
|
||||
sqlite = sqlite3;
|
||||
|
||||
subversion = (import ../applications/version-management/subversion-1.3.x) {
|
||||
inherit fetchurl stdenv openssl db4 expat jdk swig zlib;
|
||||
localServer = true;
|
||||
httpServer = false;
|
||||
sslSupport = true;
|
||||
compressionSupport = true;
|
||||
httpd = apacheHttpd;
|
||||
pythonBindings = true; # Enable python bindings
|
||||
};
|
||||
|
||||
pysqlite = (import ../development/libraries/pysqlite) {
|
||||
inherit stdenv fetchurl python substituter;
|
||||
sqlite = sqlite3;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user