2022-01-13 20:06:32 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
buildGoModule rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "symfony-cli";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "5.4.19";
|
|
|
|
vendorSha256 = "sha256-P5KEliTqj9kGYffhl014QK6qPY9gLG+bViOz4dtsQwA=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symfony-cli";
|
|
|
|
repo = "symfony-cli";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-GAsyI8I+tHFMV/LqwPx2ph+w3zaqKSn9vieVQcuO+y0=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/symfony-cli $out/bin/symfony
|
|
|
|
'';
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
# Tests requires network access
|
2022-12-17 10:02:37 +00:00
|
|
|
checkPhase = ''
|
|
|
|
$GOPATH/bin/symfony-cli
|
|
|
|
'';
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Symfony CLI";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/symfony-cli/symfony-cli";
|
|
|
|
license = licenses.agpl3Plus;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|