mirror of
https://codeberg.org/icewind/flakelight-php.git
synced 2026-06-03 09:54:20 +02:00
psalm check
This commit is contained in:
parent
1eceb2ce73
commit
341f512bd5
4 changed files with 85 additions and 8 deletions
23
pkgs/vendor.nix
Normal file
23
pkgs/vendor.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
composerMeta,
|
||||
vendorHash,
|
||||
runCommand,
|
||||
composerJson,
|
||||
composerLock,
|
||||
php,
|
||||
}: let
|
||||
inherit (composerMeta) version name;
|
||||
in
|
||||
php.mkComposerVendor {
|
||||
src = runCommand "${name}-composer-config" {} ''
|
||||
mkdir $out
|
||||
cp ${composerJson} $out/composer.json
|
||||
cp ${composerLock} $out/composer.lock
|
||||
'';
|
||||
pname = name;
|
||||
inherit php vendorHash name version;
|
||||
|
||||
postBuild = ''
|
||||
rm -rf vendor/*/*/.git
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue