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-05-24 13:37:59 +00:00
|
|
|
version = "5.5.6";
|
|
|
|
vendorHash = "sha256-AfgDsd4W8wV0GeymD9SLeHtOeFP9qbFy+GTdMxQSkDA=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symfony-cli";
|
|
|
|
repo = "symfony-cli";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-lE8RBjBXucL0DJjEnBLbHqOVE6g358rwmaEUqU6QhOw=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|