Do not assume a .rev attribute in available in src in maven-build.nix

This commit is contained in:
Rob Vermaas 2014-01-24 15:52:19 +01:00
parent f2d6166781
commit 13e13f279b

View File

@ -78,7 +78,7 @@ stdenv.mkDerivation ( rec {
zip=$(ls target/*.zip| head -1)
releaseName=$(basename $zip .zip)
releaseName="$releaseName-r${toString src.rev}"
releaseName="$releaseName-r${toString src.rev or "0"}"
cp $zip $out/release/$releaseName.zip
echo "$releaseName" > $out/nix-support/hydra-release-name