Merge pull request #206149 from charlycoste/symfony-cli
symfony-cli: add missing compilation flags
This commit is contained in:
@@ -12,12 +12,20 @@ buildGoModule rec {
|
||||
sha256 = "sha256-GAsyI8I+tHFMV/LqwPx2ph+w3zaqKSn9vieVQcuO+y0=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/symfony-cli $out/bin/symfony
|
||||
'';
|
||||
|
||||
# Tests requires network access
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
$GOPATH/bin/symfony-cli
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Symfony CLI";
|
||||
|
||||
Reference in New Issue
Block a user