diff options
Diffstat (limited to 'overlays/kimai.nix')
| -rw-r--r-- | overlays/kimai.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/overlays/kimai.nix b/overlays/kimai.nix new file mode 100644 index 00000000..0151f01a --- /dev/null +++ b/overlays/kimai.nix | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | { final, prev, ... }: { | ||
| 2 | kimai = prev.kimai.overrideAttrs (oldAttrs: rec { | ||
| 3 | composerNoPlugins = false; | ||
| 4 | |||
| 5 | postInstall = '' | ||
| 6 | # Make available the console utility, as Kimai doesn't list this in | ||
| 7 | # composer.json. | ||
| 8 | mkdir -p "$out"/share/php/kimai "$out"/bin | ||
| 9 | ln -s "$out"/share/php/kimai/bin/console "$out"/bin/console | ||
| 10 | |||
| 11 | # Install bundled assets. This is normally done in the `composer install` | ||
| 12 | # post-install script, but it's being skipped. | ||
| 13 | (cd "$out"/share/php/kimai && php ./bin/console assets:install) | ||
| 14 | ''; | ||
| 15 | }); | ||
| 16 | } | ||
