testVersion: name runCommand after package.name

This commit is contained in:
0x4A6F 2021-11-20 22:00:22 +01:00
parent a03719be2e
commit 0ca14515c6
No known key found for this signature in database
GPG Key ID: 8DEDBA5BE07080E1

View File

@ -749,7 +749,7 @@ rec {
{ package,
command ? "${package.meta.mainProgram or package.pname or package.name} --version",
version ? package.version,
}: runCommand "test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } ''
}: runCommand "${package.name}-test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } ''
${command} |& grep -Fw ${version}
touch $out
'';