summaryrefslogtreecommitdiff
path: root/overlays/kimai.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-01-09 11:22:58 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2026-01-09 11:22:58 +0100
commiteff63acdd8515e8817a04633f0d5602bf666f92e (patch)
tree31cfff24599659428cd97cdb676e34a5e79bed81 /overlays/kimai.nix
parenta12a7fac9f295cf86e502354471587816a6f5f04 (diff)
downloadnixos-eff63acdd8515e8817a04633f0d5602bf666f92e.tar
nixos-eff63acdd8515e8817a04633f0d5602bf666f92e.tar.gz
nixos-eff63acdd8515e8817a04633f0d5602bf666f92e.tar.bz2
nixos-eff63acdd8515e8817a04633f0d5602bf666f92e.tar.xz
nixos-eff63acdd8515e8817a04633f0d5602bf666f92e.zip
...
Diffstat (limited to 'overlays/kimai.nix')
-rw-r--r--overlays/kimai.nix16
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}