mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #153461 from drupol/refactor/update-symfony-cli
symfony-cli: 4.26.9 -> 5.0.7
This commit is contained in:
commit
474ff276cf
1 changed files with 14 additions and 40 deletions
|
@ -1,50 +1,24 @@
|
|||
{ stdenvNoCC, fetchurl, lib }:
|
||||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
|
||||
let
|
||||
version = "4.26.9";
|
||||
|
||||
srcs = {
|
||||
x86_64-linux = fetchurl {
|
||||
url = "https://github.com/symfony/cli/releases/download/v${version}/symfony_linux_amd64.gz";
|
||||
sha256 = "0ivqqrpzbpyzp60bv25scarmvisj401rp7h2s3cxa7d17prja91v";
|
||||
};
|
||||
|
||||
i686-linux = fetchurl {
|
||||
url = "https://github.com/symfony/cli/releases/download/v${version}/symfony_linux_386.gz";
|
||||
sha256 = "0ag5w70bkvj9wgp4yzzy824shj907sa5l20sqcgivi3r5gy0p277";
|
||||
};
|
||||
|
||||
aarch64-linux = fetchurl {
|
||||
url = "https://github.com/symfony/cli/releases/download/v${version}/symfony_linux_arm64.gz";
|
||||
sha256 = "00325xz7xl3bprj5zbg5yhn36jf4n37zlyag10m8zcmq8asa6k51";
|
||||
};
|
||||
|
||||
x86_64-darwin = fetchurl {
|
||||
url = "https://github.com/symfony/cli/releases/download/v${version}/symfony_darwin_amd64.gz";
|
||||
sha256 = "00325xz7xl3bprj5zbg5yhn36jf4n37zlyag10m8zcmq8asa6k51";
|
||||
};
|
||||
};
|
||||
in stdenvNoCC.mkDerivation rec {
|
||||
inherit version;
|
||||
buildGoModule rec {
|
||||
pname = "symfony-cli";
|
||||
version = "5.0.7";
|
||||
vendorSha256 = "sha256-aTC84iA3/z/qhZbXPtOeZwDGn6BFCefCVlkUrbEtxUI=";
|
||||
|
||||
src = srcs.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}");
|
||||
src = fetchFromGitHub {
|
||||
owner = "symfony-cli";
|
||||
repo = "symfony-cli";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Z3AIlN/s0uPE0OAlgSxbQPRoWPTHjDq4c8RlQ3SuIk8=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
unpackPhase = ''
|
||||
gunzip <$src >symfony
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -t $out/bin symfony
|
||||
'';
|
||||
# Tests requires network access
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Symfony CLI";
|
||||
homepage = "https://symfony.com/download";
|
||||
license = licenses.unfree;
|
||||
homepage = "https://github.com/symfony-cli/symfony-cli";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ drupol ];
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue