blob: f2e2a11da8d52e1cbe9ac407930c81609ba803b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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
'')
|