1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

doc: add type signature of testers.runCommand

This commit is contained in:
nicoo 2024-08-08 15:43:47 +00:00
parent 244229a8b6
commit e0fc12cd12

View file

@ -341,6 +341,8 @@ once to get a derivation hash, and again to produce the final fixed output deriv
## `runCommand` {#tester-runCommand}
`runCommand :: { name, script, stdenv ? stdenvNoCC, hash ? "...", ... } -> Derivation`
This is a wrapper around `pkgs.runCommandWith`, which
- produces a fixed-output derivation, enabling the command(s) to access the network ;
- salts the derivation's name based on its inputs, ensuring the command is re-run whenever the inputs changes.