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
791 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-01-18 08:54:14 +00:00
version = "5.4.21";
vendorHash = "sha256-P5KEliTqj9kGYffhl014QK6qPY9gLG+bViOz4dtsQwA=";
2022-01-04 10:27:32 +00:00
src = fetchFromGitHub {
owner = "symfony-cli";
repo = "symfony-cli";
rev = "v${version}";
2023-01-18 08:54:14 +00:00
sha256 = "sha256-lNEd5mj5K8MhlLkrRiFnEqVLnS+4mx7FNAtYuF5jdC0=";
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 ];
};
}