f094289e00
Diff: https://github.com/symfony-cli/symfony-cli/compare/v5.7.5...v5.7.6 Changelog: https://github.com/symfony-cli/symfony-cli/releases/tag/v5.7.6
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nix-update-script
|
|
, testers
|
|
, symfony-cli
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "symfony-cli";
|
|
version = "5.7.6";
|
|
vendorHash = "sha256-GuLcevYEM+neWAJoNBZrAVzVxdaLFFi9nubXGzp4EXw=";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symfony-cli";
|
|
repo = "symfony-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-HMyq4raB6pPtx4DEJlcSM2+jlw7KWJW72RRVdG2wvn0=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
"-X main.channel=stable"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/symfony-cli $out/bin/symfony
|
|
'';
|
|
|
|
# Tests requires network access
|
|
doCheck = false;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
inherit version;
|
|
package = symfony-cli;
|
|
command = "symfony version --no-ansi";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/symfony-cli/symfony-cli/releases/tag/v${version}";
|
|
description = "Symfony CLI";
|
|
homepage = "https://github.com/symfony-cli/symfony-cli";
|
|
license = lib.licenses.agpl3Plus;
|
|
mainProgram = "symfony";
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
};
|
|
}
|