2008-06-12 16:59:59 +01:00
|
|
|
|
|
|
|
args : with args;
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2011-09-06 18:09:41 +01:00
|
|
|
url = http://viewmtn.1erlei.de/downloads/viewmtn-0.10.tgz;
|
2008-06-12 16:59:59 +01:00
|
|
|
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))
|
|
|
|
];
|
|
|
|
|
2009-05-20 00:25:58 +01:00
|
|
|
doInstall = fullDepEntry (''
|
2008-06-12 16:59:59 +01:00
|
|
|
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)
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $fullOut
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/viewmtn
|
2008-06-12 16:59:59 +01:00
|
|
|
|
|
|
|
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"];
|
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
name = "viewmtn-0.10";
|
2008-06-12 16:59:59 +01:00
|
|
|
meta = {
|
|
|
|
description = "Monotone web interface";
|
|
|
|
};
|
|
|
|
}
|