Add image handling support in nix shell.

This commit is contained in:
Daniel Siepmann 2024-07-23 14:46:07 +02:00
parent af8a50dc3b
commit 1daff9de4a
3 changed files with 6 additions and 4 deletions

View file

@ -28,7 +28,7 @@ Nothing
Tasks Tasks
----- -----
Nothing * Add image handling support in nix shell.
Deprecation Deprecation
----------- -----------

View file

@ -76,9 +76,9 @@ abstract class AbstractFunctionalTestCase extends FunctionalTestCase
], ],
'GFX' => [ 'GFX' => [
'processor_enabled' => true, 'processor_enabled' => true,
'processor_path' => '/usr/bin/', 'processor_path' => getenv('GRAPHICSMAGICK_PATH') ?: '/usr/bin/',
'processor_path_lzw' => '/usr/bin/', 'processor_path_lzw' => getenv('GRAPHICSMAGICK_PATH') ?: '/usr/bin/',
'processor' => 'ImageMagick', 'processor' => getenv('GRAPHICSMAGICK_PATH') ? 'GraphicsMagick' : 'ImageMagick',
], ],
'SC_OPTIONS' => [ 'SC_OPTIONS' => [
'Core/TypoScript/TemplateService' => [ 'Core/TypoScript/TemplateService' => [

View file

@ -129,6 +129,8 @@ in pkgs.mkShell {
composer composer
]; ];
GRAPHICSMAGICK_PATH = pkgs.lib.makeBinPath [ pkgs.graphicsmagick ] + "/";
shellHook = '' shellHook = ''
export PROJECT_ROOT="$(pwd)" export PROJECT_ROOT="$(pwd)"