Unverified Commit 3be18094 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

kimai: (re-)enable Composer plugins and asset install; fix running Kimai,...

kimai: (re-)enable Composer plugins and asset install; fix running Kimai, 2.44.0 -> 2.46.0 (#481106)
parents 3c1fdb10 c35f0b86
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@

php.buildComposerProject2 (finalAttrs: {
  pname = "kimai";
  version = "2.44.0";
  version = "2.46.0";

  src = fetchFromGitHub {
    owner = "kimai";
    repo = "kimai";
    tag = finalAttrs.version;
    hash = "sha256-Y2nLM4OK5FsX4e1o0mar5PizwLsqcFdnq4NISp936gE=";
    hash = "sha256-sZjDl3nQ4i5KVnM2fLVvaQxMlE225q7EBkgFmTn+ugc=";
  };

  php = php.buildEnv {
@@ -38,8 +38,9 @@ php.buildComposerProject2 (finalAttrs: {
    '';
  };

  vendorHash = "sha256-3/LT5HjCpnO3Sz+NshrSMTujtYka0FMyT56qmiEi2t4=";
  vendorHash = "sha256-FJaWNlzOIm4hJexgKI8fEmRvBfaa8nxxkg8zJeCz3SU=";

  composerNoPlugins = false;
  postInstall = ''
    # Make available the console utility, as Kimai doesn't list this in
    # composer.json.
@@ -48,7 +49,7 @@ php.buildComposerProject2 (finalAttrs: {

    # 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)
    (cd "$out"/share/php/kimai && php ./bin/console assets:install)
  '';

  passthru.tests = {