depot/third_party/nixpkgs/pkgs/by-name/la/laravel/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
941 B
Nix

{
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 ];
};
})