Add project-install to shell.nix
This commit is contained in:
parent
8124631d5d
commit
52e1b75a06
1 changed files with 15 additions and 1 deletions
16
shell.nix
16
shell.nix
|
@ -1,11 +1,25 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
pkgs.mkShell {
|
let
|
||||||
|
projectInstall = pkgs.writeShellApplication {
|
||||||
|
name = "project-install";
|
||||||
|
|
||||||
|
runtimeInputs = [
|
||||||
|
pkgs.php82Packages.composer
|
||||||
|
];
|
||||||
|
|
||||||
|
text = ''
|
||||||
|
composer install
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
in pkgs.mkShell {
|
||||||
name = "Videocutting";
|
name = "Videocutting";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.ffmpeg
|
pkgs.ffmpeg
|
||||||
pkgs.php82
|
pkgs.php82
|
||||||
pkgs.php82Packages.composer
|
pkgs.php82Packages.composer
|
||||||
|
projectInstall
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
Loading…
Reference in a new issue