* Nix-build places a symlink `result' in the current directory to the
store object just built.
This commit is contained in:
		
							parent
							
								
									9bf7a5f516
								
							
						
					
					
						commit
						e8a95108c0
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		|  | @ -19,7 +19,16 @@ for i in "$@"; do | ||||||
|             for j in $storeExpr; do |             for j in $storeExpr; do | ||||||
|                 echo "store expression is $j" >&2 |                 echo "store expression is $j" >&2 | ||||||
|             done |             done | ||||||
|             nix-store -qnfv $extraArgs $storeExpr |             outPath=$(nix-store -qnfv $extraArgs $storeExpr) | ||||||
|  |             echo $outPath | ||||||
|  |             if test -e result; then | ||||||
|  |                 if ! test -L result; then | ||||||
|  |                     echo "cannot remove \`result\' (not a symlink)" | ||||||
|  |                     exit 1 | ||||||
|  |                 fi | ||||||
|  |                 rm result | ||||||
|  |             fi | ||||||
|  |             ln -s $outPath result | ||||||
|             ;; |             ;; | ||||||
|     esac |     esac | ||||||
| done | done | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue