blob: 0151f01a32bc736c001ae9b228dec4103c30d522 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ final, prev, ... }: {
kimai = prev.kimai.overrideAttrs (oldAttrs: rec {
composerNoPlugins = false;
postInstall = ''
# Make available the console utility, as Kimai doesn't list this in
# composer.json.
mkdir -p "$out"/share/php/kimai "$out"/bin
ln -s "$out"/share/php/kimai/bin/console "$out"/bin/console
# Install bundled assets. This is normally done in the `composer install`
# post-install script, but it's being skipped.
(cd "$out"/share/php/kimai && php ./bin/console assets:install)
'';
});
}
|