Daniel Siepmann
df46cb05ed
Remove flakes for now. I will use shells for now to not have a mixed setup. Add composer v1 for a single customer project as overlay due to usage in shell instead of flakes. Adjust folder to not have unnecessary deep structure. Add shell for reuter monorepo using composer v1.
29 lines
660 B
Nix
29 lines
660 B
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
let
|
|
compileAssets = pkgs.writeShellApplication {
|
|
name = "compileAssets";
|
|
runtimeInputs = [
|
|
pkgs.nodejs-14_x
|
|
pkgs.nodePackages.npm
|
|
];
|
|
text = ''
|
|
rm -rf "$PROJECT_ROOT/packages/soziopolis/Build/node_modules/"
|
|
npm ci --prefix="$PROJECT_ROOT/packages/soziopolis/Build/"
|
|
npm run style --prefix="$PROJECT_ROOT/packages/soziopolis/Build/"
|
|
npm run js --prefix="$PROJECT_ROOT/packages/soziopolis/Build/"
|
|
'';
|
|
};
|
|
|
|
in pkgs.mkShell {
|
|
name = "TYPO3Website";
|
|
buildInputs = [
|
|
compileAssets
|
|
pkgs.nodejs-14_x
|
|
];
|
|
|
|
shellHook = ''
|
|
export PROJECT_ROOT="$(pwd)"
|
|
'';
|
|
}
|