mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
symfony-cli: use finalAttrs
pattern
This commit is contained in:
parent
fa65f09a8f
commit
0dd2d4feae
1 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
|||
makeBinaryWrapper,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "symfony-cli";
|
||||
version = "5.11.0";
|
||||
vendorHash = "sha256-6DNirMtVuuWJziDy6HeJxHQnV2f7jmie7kcXvUDfN94=";
|
||||
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "symfony-cli";
|
||||
repo = "symfony-cli";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-r8B9lFcTG0TWb3U8eRzg9SkwUY90805wdFlmPbtMywk=";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
|
@ -29,7 +29,7 @@ buildGoModule rec {
|
|||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
"-X main.version=${finalAttrs.version}"
|
||||
"-X main.channel=stable"
|
||||
];
|
||||
|
||||
|
@ -53,18 +53,18 @@ buildGoModule rec {
|
|||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
inherit version;
|
||||
inherit (finalAttrs) version;
|
||||
package = symfony-cli;
|
||||
command = "symfony version --no-ansi";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/symfony-cli/symfony-cli/releases/tag/v${version}";
|
||||
changelog = "https://github.com/symfony-cli/symfony-cli/releases/tag/v${finalAttrs.version}";
|
||||
description = "Symfony CLI";
|
||||
homepage = "https://github.com/symfony-cli/symfony-cli";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
mainProgram = "symfony";
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue