0
0
Fork 0
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:
misuzu 2025-02-10 20:13:37 +02:00 committed by GitHub
commit 2bf51f5ddf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
{