kimai: init at 2.24.0
This commit is contained in:
parent
b5003e741e
commit
0d946aac1e
65
pkgs/by-name/ki/kimai/package.nix
Normal file
65
pkgs/by-name/ki/kimai/package.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
php,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
}:
|
||||
|
||||
php.buildComposerProject (finalAttrs: {
|
||||
pname = "kimai";
|
||||
version = "2.24.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kimai";
|
||||
repo = "kimai";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-C6i263sAfZwZELUIcZh/OmXZqgCKifjPYBafnH0wMC4=";
|
||||
};
|
||||
|
||||
php = php.buildEnv {
|
||||
extensions = (
|
||||
{ enabled, all }:
|
||||
enabled
|
||||
++ (with all; [
|
||||
gd
|
||||
intl
|
||||
mbstring
|
||||
pdo
|
||||
tokenizer
|
||||
xml
|
||||
xsl
|
||||
zip
|
||||
])
|
||||
);
|
||||
|
||||
# Asset building and (later) cache building process requires a little bit
|
||||
# more memory.
|
||||
extraConfig = ''
|
||||
memory_limit=384M
|
||||
'';
|
||||
};
|
||||
|
||||
vendorHash = "sha256-3y3FfSUuDyBGP1dsuzDORDqFNj3jYix5ArM+2FS4gn4=";
|
||||
|
||||
composerNoPlugins = false;
|
||||
composerNoScripts = 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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Web-based multi-user time-tracking application";
|
||||
homepage = "https://www.kimai.org/";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
longDescription = "
|
||||
Kimai is a web-based multi-user time-tracking application. Works great for
|
||||
everyone: freelancers, companies, organizations - everyone can track their
|
||||
times, generate reports, create invoices and do so much more.
|
||||
";
|
||||
maintainers = with lib.maintainers; [ peat-psuwit ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user