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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "5.5.10";
|
|
|
|
vendorHash = "sha256-eeVi/O4p7bF4CPqJBCpLfx1Yc5vZZ3b8RV5ERcIL8H4=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symfony-cli";
|
|
|
|
repo = "symfony-cli";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-n0R+J41lJYxswMnknYAAEKwwIqOremZF73cRBYfD3CE=";
|
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
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Symfony CLI";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/symfony-cli/symfony-cli";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "symfony";
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|