mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
Do not assume a .rev attribute in available in src in maven-build.nix
This commit is contained in:
parent
f2d6166781
commit
13e13f279b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user