nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1runCommand: subversion: repository:
2import (
3 runCommand "head-revision"
4 {
5 buildInputs = [ subversion ];
6 dummy = builtins.currentTime;
7 }
8 ''
9 rev=$(echo p | svn ls -v --depth empty ${repository} |awk '{ print $1 }')
10 echo "[ \"$rev\" ]" > $out
11 echo Latest revision is $rev
12 ''
13)