Laravel: init at 5.8.1 (#314548)

Added composer wrapper (Suggested by yayayayaka)
Removed `with lib;`
This commit is contained in:
Heisfer 2024-05-28 14:58:41 +03:00 committed by GitHub
parent 34823ec059
commit c51180147c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3800 additions and 0 deletions

3764
pkgs/by-name/la/laravel/composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
makeWrapper,
php,
}:
php.buildComposerProject (finalAttrs: {
pname = "laravel";
version = "5.8.1";
src = fetchFromGitHub {
owner = "laravel";
repo = "installer";
rev = "v${finalAttrs.version}";
hash = "sha256-LQABZnmKgJ8qkymmSjhjc+x1qZ/tFqFyQbfeGZECxok=";
};
nativeBuildInputs = [ makeWrapper ];
composerLock = ./composer.lock;
vendorHash = "sha256-f18N2qNCUFetCaHaC4X6Benq70x21SVQ3YSs8kovK1g=";
postInstall = ''
wrapProgram $out/bin/laravel \
--suffix PATH : ${lib.makeBinPath [ php.packages.composer ]}
'';
meta = {
description = "The Laravel application installer.";
homepage = "https://laravel.com/docs#creating-a-laravel-project";
changelog = "https://github.com/laravel/installer/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "laravel";
maintainers = with lib.maintainers; [ heisfer ];
};
})