2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
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 = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Laravel application installer";
|
2024-06-05 15:53:02 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
})
|