From 52e1b75a06f87bd044cd9de9752ca1d19837f7cf Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 16 Feb 2023 16:54:39 +0100 Subject: [PATCH] Add project-install to shell.nix --- shell.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index d6d867a..24c6cba 100644 --- a/shell.nix +++ b/shell.nix @@ -1,11 +1,25 @@ { pkgs ? import { } }: -pkgs.mkShell { +let + projectInstall = pkgs.writeShellApplication { + name = "project-install"; + + runtimeInputs = [ + pkgs.php82Packages.composer + ]; + + text = '' + composer install + ''; + }; + +in pkgs.mkShell { name = "Videocutting"; buildInputs = [ pkgs.ffmpeg pkgs.php82 pkgs.php82Packages.composer + projectInstall ]; shellHook = ''