mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
nixos/nats: make config validation friendly to cross compilation (#379405)
This commit is contained in:
commit
2bf51f5ddf
1 changed files with 11 additions and 8 deletions
|
@ -17,14 +17,17 @@ let
|
|||
|
||||
validateConfig =
|
||||
file:
|
||||
pkgs.runCommand "validate-nats-conf"
|
||||
{
|
||||
nativeBuildInputs = [ pkgs.nats-server ];
|
||||
}
|
||||
''
|
||||
nats-server --config "${configFile}" -t
|
||||
ln -s "${configFile}" "$out"
|
||||
'';
|
||||
pkgs.callPackage (
|
||||
{ runCommand, nats-server }:
|
||||
runCommand "validate-nats-conf"
|
||||
{
|
||||
nativeBuildInputs = [ nats-server ];
|
||||
}
|
||||
''
|
||||
nats-server --config "${configFile}" -t
|
||||
ln -s "${configFile}" "$out"
|
||||
''
|
||||
) { };
|
||||
in
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue