5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
36 lines
790 B
Nix
36 lines
790 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "symfony-cli";
|
|
version = "5.5.0";
|
|
vendorHash = "sha256-l8h2jHOwxvFEk9v/U8DU8g6La9TyPtpDvQTTSX4BW84=";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symfony-cli";
|
|
repo = "symfony-cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-d/Ld/F1dvwO7/uKLtgQmYhfOoxvIyEbnE3ks6R2412I=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/symfony-cli $out/bin/symfony
|
|
'';
|
|
|
|
# Tests requires network access
|
|
checkPhase = ''
|
|
$GOPATH/bin/symfony-cli
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Symfony CLI";
|
|
homepage = "https://github.com/symfony-cli/symfony-cli";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ drupol ];
|
|
};
|
|
}
|