3
0
Fork 0
forked from mirrors/nixpkgs

Added ViewMTN and dependency; currently ViewMTN has to be manually symlinked in corresponding directory.

svn path=/nixpkgs/trunk/; revision=12060
This commit is contained in:
Michael Raskin 2008-06-12 15:59:59 +00:00
parent 638f4bf121
commit 0784550c35
7 changed files with 138 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{stdenv, fetchurl, boost, zlib}:
stdenv.mkDerivation {
name = "monotone-0.38";
name = "monotone-0.40";
src = fetchurl {
url = http://monotone.ca/downloads/0.40/monotone-0.40.tar.gz;
sha256 = "0zs1zxvdn0m27w1830qbbh5vqk948hkpdkxwnlghszcbzz49151h";

View file

@ -0,0 +1,45 @@
args : with args;
rec {
src = fetchurl {
url = http://grahame.angrygoats.net/source/viewmtn/viewmtn-0.10.tgz;
sha256 = "1c6y708xaf6pds1r6l00q7vpgfagfbnf95kqj168vw3xr3l8a4yx";
};
buildInputs = [python flup highlight monotone
cheetahTemplate makeWrapper graphviz which];
configureFlags = [];
makeFlags = ["PREFIX=$out"];
/* doConfigure should be specified separately */
phaseNames = ["doInstall"
(doPatchShebangs "$out/bin")
(makeManyWrappers "$out/bin/*"
(pythonWrapperArguments + preservePathWrapperArguments))
];
doInstall = FullDepEntry (''
for i in dot mtn highlight; do
sed -e "s@/usr/bin/$i@$(which $i)@" -i config.py.example
done
sed -e "s@'templates/'@'$out/share/viewmtn/templates/'@" -i config.py.example
fullOut=$(toPythonPath $out)
ensureDir $fullOut
ensureDir $out/bin
ensureDir $out/share/viewmtn
cp -r * $fullOut
cp $fullOut/viewmtn.py $out/bin
ln -s $fullOut/{AUTHORS,ChangeLog,INSTALL,LICENSE,README,TODO,config.py.example} $out/share/viewmtn
ln -s $fullOut/templates $out/share/viewmtn/
ln -s $fullOut/static $out/share/viewmtn/
'') ["minInit" "defEnsureDir" "addInputs" "doUnpack"];
name = "viewmtn-" + version;
meta = {
description = "Monotone web interface";
};
}

View file

@ -0,0 +1,18 @@
args : with args;
rec {
src = fetchurl {
url = http://www.saddi.com/software/flup/dist/flup-r2311.tar.gz;
sha256 = "15wyn6d6wla1ag91yxmlh9b4m0w1i0c2lm8ka4qfv4ijqcqakdx3";
};
buildInputs = [python setuptools];
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["addInputs" "createPythonInstallationTarget" (doDump "0") "installPythonPackage"];
name = "flup-" + version;
meta = {
description = "FastCGI Python module set";
};
}

View file

@ -0,0 +1,19 @@
args : with args;
rec {
src = fetchurl {
url = http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c8.tar.gz;
sha256 = "0dry431lkaqqmgvka0rhnw54ljf1yx0npzh7r81z2ylcrn27lrln";
};
buildInputs = [python];
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["createPythonInstallationTarget" "installPythonPackage"];
name = "setuptools-" + version;
meta = {
description = "Installation utilities for Python packages";
};
}

View file

@ -0,0 +1,20 @@
args : with args;
rec {
src = fetchurl {
url = http://www.andre-simon.de/zip/highlight-2.6.10.tar.bz2;
sha256 = "18f2ki9pajxlp0aq4ingxj7m0cp7wlbc40xm25pnxc1yis9vlira";
};
buildInputs = [getopt];
configureFlags = [];
makeFlags = ["PREFIX=$out"];
/* doConfigure should be specified separately */
phaseNames = ["doMakeInstall"];
name = "highlight-" + version;
meta = {
description = "Source code highlighting tool";
};
}

View file

@ -503,7 +503,8 @@ let pkgs = rec {
};
cheetahTemplate = builderDefsPackage (selectVersion ../tools/text/cheetah-template "2.0.1") {
inherit python makeWrapper;
inherit makeWrapper;
python = python25;
} null;
chkrootkit = import ../tools/security/chkrootkit {
@ -739,6 +740,10 @@ let pkgs = rec {
inherit fetchurl stdenv ocaml;
};
highlight = builderDefsPackage (selectVersion ../tools/text/highlight "2.6.10") {
inherit getopt;
} null;
/*
hyppocampusFun = lib.sumArgs ( selectVersion ../tools/misc/hyppocampus "0.3rc1") {
inherit builderDefs stdenv fetchurl libdbi libdbiDrivers fuse
@ -1653,6 +1658,13 @@ let pkgs = rec {
inherit (gnome) gtk libgnomecanvas glib;
} null;
viewMtn = builderDefsPackage (selectVersion ../applications/version-management/viewmtn "0.10")
{
inherit monotone flup cheetahTemplate highlight ctags
makeWrapper graphviz which;
python = python25;
} null;
nasm = import ../development/compilers/nasm {
inherit fetchurl stdenv;
};
@ -4202,6 +4214,13 @@ let pkgs = rec {
inherit fetchurl stdenv python db4;
};
flup = builderDefsPackage (selectVersion ../development/python-modules/flup "r2311")
(let python=python25; in
{
inherit python;
setuptools = setuptools.meta.function {inherit python;} null;
}) null;
pil = import ../development/python-modules/pil {
inherit fetchurl stdenv python zlib libtiff libjpeg freetype;
};
@ -4253,6 +4272,10 @@ let pkgs = rec {
inherit fetchurl stdenv python makeWrapper;
};
setuptools = builderDefsPackage (selectVersion ../development/python-modules/setuptools "0.6c8") {
python = python25;
} null;
wxPython = wxPython26;
wxPython26 = import ../development/python-modules/wxPython/2.6.nix {

View file

@ -307,10 +307,15 @@ args: with args; with stringsWithDeps; with lib;
wrapBinContentsPython = (makeManyWrappers
''$out/bin/*''
(''--prefix PYTHONPATH : $(toPythonPath $out)'' +
''''${PYTHONPATH:+ --prefix PYTHONPATH : $PYTHONPATH}'')
pythonWrapperArguments
);
pythonWrapperArguments =
(''--prefix PYTHONPATH : $(toPythonPath $out)'' +
''''${PYTHONPATH:+ --prefix PYTHONPATH : $PYTHONPATH}'');
preservePathWrapperArguments = ''''${PATH:+ --prefix PATH : $PATH }'';
doPropagate = FullDepEntry ("
ensureDir \$out/nix-support
echo '${toString (getAttr ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
@ -507,4 +512,8 @@ args: with args; with stringsWithDeps; with lib;
patchShebangFun;
'') ["minInit"];
createPythonInstallationTarget = FullDepEntry (''
ensureDir $(toPythonPath $out)
export PYTHONPATH=$PYTHONPATH''${PYTHONPATH:+:}$(toPythonPath $out)
'') ["minInit" "addInputs" "defEnsureDir"];
}) // args