Live builds support: initially for git and svn. taglib_live is packaged as an example.

svn path=/nixpkgs/trunk/; revision=25351
This commit is contained in:
Evgeny Egorochkin
2011-01-02 23:23:59 +00:00
parent 8af7cabe21
commit bbedfb4a5e
4 changed files with 37 additions and 9 deletions
@@ -0,0 +1,10 @@
runCommand: subversion: repository:
import (runCommand "head-revision"
{ buildInputs = [ subversion ];
dummy = builtins.currentTime;
}
''
rev=$(echo p | svn ls -v --depth empty ${repository} |awk '{ print $1 }')
echo "[ \"$rev\" ]" > $out
echo Latest revision is $rev
'')