From 0148d8e4d299a930efe8022282b339dfef9bcf52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-=C3=89douard=20Coste?= Date: Sat, 6 Jan 2024 22:45:09 +0100 Subject: [PATCH] symfony-cli: add nssTools as a runtime dependency --- pkgs/development/tools/symfony-cli/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/symfony-cli/default.nix b/pkgs/development/tools/symfony-cli/default.nix index 1f42222779c8..7dbf5f639747 100644 --- a/pkgs/development/tools/symfony-cli/default.nix +++ b/pkgs/development/tools/symfony-cli/default.nix @@ -4,6 +4,8 @@ , nix-update-script , testers , symfony-cli +, nssTools +, makeBinaryWrapper }: buildGoModule rec { @@ -25,8 +27,14 @@ buildGoModule rec { "-X main.channel=stable" ]; + buildInputs = [ makeBinaryWrapper ]; + postInstall = '' - mv $out/bin/symfony-cli $out/bin/symfony + mkdir $out/libexec + mv $out/bin/symfony-cli $out/libexec/symfony + + makeBinaryWrapper $out/libexec/symfony $out/bin/symfony \ + --prefix PATH : ${lib.makeBinPath [ nssTools ]} ''; # Tests requires network access