videocutting/shell.nix

28 lines
438 B
Nix

{ pkgs ? import <nixpkgs> { } }:
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 = ''
export PATH="$(pwd)/:$PATH"
'';
}