* Use the version attribute if available.
svn path=/nixpkgs/trunk/; revision=14297
This commit is contained in:
parent
84a0bd9c83
commit
6bb95494e7
@ -19,7 +19,7 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
|
|||||||
// removeAttrs args ["vmTools"] //
|
// removeAttrs args ["vmTools"] //
|
||||||
|
|
||||||
{
|
{
|
||||||
name = name + "-" + diskImage.name + "-" + src.version;
|
name = name + "-" + diskImage.name + (if src ? version then "-" + src.version else "");
|
||||||
|
|
||||||
src = if src ? outPath then src.outPath else src.path;
|
src = if src ? outPath then src.outPath else src.path;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation (
|
|||||||
// args //
|
// args //
|
||||||
|
|
||||||
{
|
{
|
||||||
name = name + "-" + src.version;
|
name = name + (if src ? version then "-" + src.version else "");
|
||||||
|
|
||||||
src = if src ? outPath then src.outPath else src.path;
|
src = if src ? outPath then src.outPath else src.path;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ vmTools.buildRPM (
|
|||||||
removeAttrs args ["vmTools"] //
|
removeAttrs args ["vmTools"] //
|
||||||
|
|
||||||
{
|
{
|
||||||
name = name + "-" + diskImage.name + "-" + src.version;
|
name = name + "-" + diskImage.name + (if src ? version then "-" + src.version else "");
|
||||||
|
|
||||||
src = if src ? outPath then src.outPath else src.path;
|
src = if src ? outPath then src.outPath else src.path;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user