mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Laravel: init at 5.8.1 (#314548)
Added composer wrapper (Suggested by yayayayaka) Removed `with lib;`
This commit is contained in:
parent
34823ec059
commit
c51180147c
3764
pkgs/by-name/la/laravel/composer.lock
generated
Normal file
3764
pkgs/by-name/la/laravel/composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
36
pkgs/by-name/la/laravel/package.nix
Normal file
36
pkgs/by-name/la/laravel/package.nix
Normal 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 ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user