mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
fetchRepoProject: Fix buildCommand
This commit is contained in:
parent
6fe465f500
commit
2078c34dad
1 changed files with 5 additions and 4 deletions
|
@ -15,10 +15,11 @@ stdenv.mkDerivation {
|
|||
done
|
||||
|
||||
export HOME=.repo
|
||||
repo init --manifest-url=${manifest} --manifest-branch=${rev} --depth=1 --no-clone-bundle
|
||||
${optionalString (repoRepoURL != "") " --repo-url=${repoRepoURL}"}
|
||||
${optionalString (repoRepoRev != "") " --repo-branch=${repoRepoRev}"}
|
||||
${optionalString (referenceDir != "") " --reference=${referenceDir}"}
|
||||
repo init --manifest-url=${manifest} --manifest-branch=${rev} --depth=1 --no-clone-bundle''
|
||||
+ optionalString (repoRepoURL != "") " --repo-url=${repoRepoURL}"
|
||||
+ optionalString (repoRepoRev != "") " --repo-branch=${repoRepoRev}"
|
||||
+ optionalString (referenceDir != "") " --reference=${referenceDir}"
|
||||
+ ''
|
||||
repo sync --jobs=$NIX_BUILD_CORES --current-branch
|
||||
rm -rf $out/.repo
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue