Skip to content

Commit 0148d8e

Browse files
author
Charles-Édouard Coste
committed
symfony-cli: add nssTools as a runtime dependency
1 parent 8dd5e75 commit 0148d8e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkgs/development/tools/symfony-cli/default.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
, nix-update-script
55
, testers
66
, symfony-cli
7+
, nssTools
8+
, makeBinaryWrapper
79
}:
810

911
buildGoModule rec {
@@ -25,8 +27,14 @@ buildGoModule rec {
2527
"-X main.channel=stable"
2628
];
2729

30+
buildInputs = [ makeBinaryWrapper ];
31+
2832
postInstall = ''
29-
mv $out/bin/symfony-cli $out/bin/symfony
33+
mkdir $out/libexec
34+
mv $out/bin/symfony-cli $out/libexec/symfony
35+
36+
makeBinaryWrapper $out/libexec/symfony $out/bin/symfony \
37+
--prefix PATH : ${lib.makeBinPath [ nssTools ]}
3038
'';
3139

3240
# Tests requires network access

0 commit comments

Comments
 (0)