mirror of
https://github.com/Codappix/typo3-php-datasets.git
synced 2024-11-14 18:36:10 +01:00
Daniel Siepmann
65efed087a
There is no composer.lock within the project. Composer would raise a notice when using composer install without a lock file.
52 lines
910 B
Nix
52 lines
910 B
Nix
{
|
|
pkgs ? import <nixpkgs> { }
|
|
,phps ? import <phps>
|
|
}:
|
|
|
|
let
|
|
php = phps.packages.x86_64-linux.php81;
|
|
inherit(php.packages) composer;
|
|
|
|
phpWithXdebug = php.buildEnv {
|
|
extensions = { enabled, all }: enabled ++ (with all; [
|
|
xdebug
|
|
]);
|
|
|
|
extraConfig = ''
|
|
xdebug.mode = debug
|
|
'';
|
|
};
|
|
|
|
projectInstall = pkgs.writeShellApplication {
|
|
name = "project-install";
|
|
runtimeInputs = [
|
|
php
|
|
composer
|
|
];
|
|
text = ''
|
|
composer update --prefer-dist --no-progress
|
|
'';
|
|
};
|
|
projectCgl = pkgs.writeShellApplication {
|
|
name = "project-cgl";
|
|
runtimeInputs = [
|
|
php
|
|
];
|
|
text = ''
|
|
./vendor/bin/php-cs-fixer fix --diff
|
|
'';
|
|
};
|
|
|
|
in pkgs.mkShell {
|
|
name = "TYPO3 PHP Datasets";
|
|
buildInputs = [
|
|
projectInstall
|
|
projectCgl
|
|
phpWithXdebug
|
|
composer
|
|
];
|
|
|
|
shellHook = ''
|
|
export typo3DatabaseDriver=pdo_sqlite
|
|
'';
|
|
}
|