nixpkgs/pkgs/development/tools/symfony-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
790 B
Nix
Raw Normal View History

2022-01-04 10:27:32 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
2021-06-09 12:16:23 +00:00
2022-01-04 10:27:32 +00:00
buildGoModule rec {
pname = "symfony-cli";
2023-05-07 19:56:46 +00:00
version = "5.5.5";
2023-03-28 05:34:18 +00:00
vendorHash = "sha256-hDr/ByBCjKE+B698IXzDFq1ovS6Nfs4O32aF7HKmrcY=";
2022-01-04 10:27:32 +00:00
src = fetchFromGitHub {
owner = "symfony-cli";
repo = "symfony-cli";
rev = "v${version}";
2023-05-07 19:56:46 +00:00
sha256 = "sha256-bieFHg3hO8bQuA3yvhQVpG8hVdvQ29RVG7wAPhE0lpQ=";
2022-01-04 10:27:32 +00:00
};
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
postInstall = ''
mv $out/bin/symfony-cli $out/bin/symfony
'';
2022-01-04 10:27:32 +00:00
# Tests requires network access
checkPhase = ''
$GOPATH/bin/symfony-cli
'';
2021-06-09 12:16:23 +00:00
meta = with lib; {
description = "Symfony CLI";
2022-01-04 10:27:32 +00:00
homepage = "https://github.com/symfony-cli/symfony-cli";
license = licenses.agpl3Plus;
2021-06-09 12:16:23 +00:00
maintainers = with maintainers; [ drupol ];
};
}