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:
@@ -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
|
||||
'')
|
||||
Reference in New Issue
Block a user