mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
testVersion: name runCommand after package.name
This commit is contained in:
parent
a03719be2e
commit
0ca14515c6
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user