Add project-install to shell.nix

This commit is contained in:
Daniel Siepmann 2023-02-16 16:54:39 +01:00
parent 8124631d5d
commit 52e1b75a06
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -1,11 +1,25 @@
{ pkgs ? import <nixpkgs> { } }:
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 = ''