nixpkgs/pkgs/development/tools/symfony-cli/default.nix
2023-04-28 20:05:40 +02:00

36 lines
790 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "symfony-cli";
version = "5.5.4";
vendorHash = "sha256-hDr/ByBCjKE+B698IXzDFq1ovS6Nfs4O32aF7HKmrcY=";
src = fetchFromGitHub {
owner = "symfony-cli";
repo = "symfony-cli";
rev = "v${version}";
sha256 = "sha256-9ywxYOvI3D2aRHk9MEVZ4zWgfGsRDz3wbMO006VJPL0=";
};
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 ];
};
}