Unverified Commit caf57108 authored by Aaron Andersen's avatar Aaron Andersen Committed by GitHub
Browse files

redmine: 5.1.7 -> 6.0.4 (#355760)

parents 3b995ed5 3c341a1d
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -395,8 +395,9 @@ in
      "d '${cfg.stateDir}/log' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/plugins' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/public' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/public/assets' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/public/plugin_assets' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/public/themes' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/themes' 0750 ${cfg.user} ${cfg.group} - -"
      "d '${cfg.stateDir}/tmp' 0750 ${cfg.user} ${cfg.group} - -"

      "d /run/redmine - - - - -"
@@ -405,8 +406,9 @@ in
      "L+ /run/redmine/files - - - - ${cfg.stateDir}/files"
      "L+ /run/redmine/log - - - - ${cfg.stateDir}/log"
      "L+ /run/redmine/plugins - - - - ${cfg.stateDir}/plugins"
      "L+ /run/redmine/public/assets - - - - ${cfg.stateDir}/public/assets"
      "L+ /run/redmine/public/plugin_assets - - - - ${cfg.stateDir}/public/plugin_assets"
      "L+ /run/redmine/public/themes - - - - ${cfg.stateDir}/public/themes"
      "L+ /run/redmine/themes - - - - ${cfg.stateDir}/themes"
      "L+ /run/redmine/tmp - - - - ${cfg.stateDir}/tmp"
    ];

@@ -434,7 +436,7 @@ in

      preStart = ''
        rm -rf "${cfg.stateDir}/plugins/"*
        rm -rf "${cfg.stateDir}/public/themes/"*
        rm -rf "${cfg.stateDir}/themes/"*

        # start with a fresh config directory
        # the config directory is copied instead of linked as some mutable data is stored in there
@@ -452,11 +454,11 @@ in

        # link in all user specified themes
        for theme in ${concatStringsSep " " (mapAttrsToList unpackTheme cfg.themes)}; do
          ln -fs $theme/* "${cfg.stateDir}/public/themes"
          ln -fs $theme/* "${cfg.stateDir}/themes"
        done

        # link in redmine provided themes
        ln -sf ${cfg.package}/share/redmine/public/themes.dist/* "${cfg.stateDir}/public/themes/"
        ln -sf ${cfg.package}/share/redmine/themes.dist/* "${cfg.stateDir}/themes/"


        # link in all user specified plugins
@@ -486,6 +488,7 @@ in
        ${bundle} exec rake db:migrate
        ${bundle} exec rake redmine:plugins:migrate
        ${bundle} exec rake redmine:load_default_data
        ${bundle} exec rake assets:precompile
      '';

      serviceConfig = {
+25 −29
Original line number Diff line number Diff line
source 'https://rubygems.org'

ruby '>= 2.7.0', '< 3.3.0'
ruby '>= 3.1.0', '< 3.4.0'

gem 'rails', '6.1.7.10'
gem 'rouge', '~> 4.2.0'
gem 'request_store', '~> 1.5.0'
gem 'rails', '7.2.2.1'
gem 'rouge', '~> 4.5'
gem 'mini_mime', '~> 1.1.0'
gem "actionpack-xml_parser"
gem 'roadie-rails', '~> 3.1.0'
gem 'roadie-rails', '~> 3.2.0'
gem 'marcel'
gem 'mail', '~> 2.8.1'
gem 'nokogiri', Gem.ruby_version >= Gem::Version.new('3.1') ? '1.18.3' : '~> 1.15.7'
gem 'nokogiri', '~> 1.18.3'
gem 'i18n', '~> 1.14.1'
gem 'rbpdf', '~> 1.21.3'
gem 'addressable'
gem 'rubyzip', '~> 2.3.0'
gem 'propshaft', '~> 1.1.0'
gem 'rack', '>= 3.1.3'

#  Ruby Standard Gems
gem 'csv', '~> 3.2.6'
gem 'net-imap', '~> 0.3.4'
gem 'csv', '~> 3.2.8'
gem 'net-imap', '~> 0.4.8'
gem 'net-pop', '~> 0.1.2'
gem 'net-smtp', '~> 0.3.3'
gem 'rexml', require: false if Gem.ruby_version >= Gem::Version.new('3.0')
gem 'net-smtp', '~> 0.4.0'

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
@@ -41,12 +41,7 @@ end

# Optional gem for exporting the gantt to a PNG file
group :minimagick do
  gem 'mini_magick', '~> 4.12.0'
end

# Optional Markdown support
group :markdown do
  gem 'redcarpet', '~> 3.6.0'
  gem 'mini_magick', '~> 5.0.1'
end

# Optional CommonMark support, not for JRuby
@@ -56,14 +51,19 @@ group :common_mark do
end

# Include database gems for the database adapters NixOS supports
gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
gem 'mysql2', '~> 0.5.0'
gem "with_advisory_lock"
gem 'pg', '~> 1.5.3', :platforms => [:mri, :mingw, :x64_mingw]
gem 'sqlite3', '~> 1.6.0', :platforms => [:mri, :mingw, :x64_mingw]
gem 'pg', '~> 1.5.3'
gem 'sqlite3', '~> 1.7.0'

group :development, :test do
  gem 'debug'
end

group :development do
  gem 'listen', '~> 3.3'
  gem "yard"
  gem 'yard', require: false
  gem 'svg_sprite', require: false
end

group :test do
@@ -74,16 +74,12 @@ group :test do
  # For running system tests
  gem 'puma'
  gem "capybara", ">= 3.39"
  if Gem.ruby_version < Gem::Version.new('3.0')
    gem "selenium-webdriver", "<= 4.9.0"
    gem "webdrivers", require: false
  else
    gem "selenium-webdriver", ">= 4.11.0"
  end
  gem 'selenium-webdriver', '>= 4.11.0'
  # RuboCop
  gem 'rubocop', '~> 1.57.0', require: false
  gem 'rubocop-performance', '~> 1.19.0', require: false
  gem 'rubocop-rails', '~> 2.22.1', require: false
  gem 'rubocop', '~> 1.68.0', require: false
  gem 'rubocop-performance', '~> 1.22.0', require: false
  gem 'rubocop-rails', '~> 2.27.0', require: false
  gem 'bundle-audit', require: false
end

gem "webrick"
+166 −117
Original line number Diff line number Diff line
GEM
  remote: https://rubygems.org/
  specs:
    actioncable (6.1.7.10)
      actionpack (= 6.1.7.10)
      activesupport (= 6.1.7.10)
    actioncable (7.2.2.1)
      actionpack (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (6.1.7.10)
      actionpack (= 6.1.7.10)
      activejob (= 6.1.7.10)
      activerecord (= 6.1.7.10)
      activestorage (= 6.1.7.10)
      activesupport (= 6.1.7.10)
      mail (>= 2.7.1)
    actionmailer (6.1.7.10)
      actionpack (= 6.1.7.10)
      actionview (= 6.1.7.10)
      activejob (= 6.1.7.10)
      activesupport (= 6.1.7.10)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (6.1.7.10)
      actionview (= 6.1.7.10)
      activesupport (= 6.1.7.10)
      rack (~> 2.0, >= 2.0.9)
      zeitwerk (~> 2.6)
    actionmailbox (7.2.2.1)
      actionpack (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activestorage (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      mail (>= 2.8.0)
    actionmailer (7.2.2.1)
      actionpack (= 7.2.2.1)
      actionview (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      mail (>= 2.8.0)
      rails-dom-testing (~> 2.2)
    actionpack (7.2.2.1)
      actionview (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      nokogiri (>= 1.8.5)
      racc
      rack (>= 2.2.4, < 3.2)
      rack-session (>= 1.0.1)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
      rails-dom-testing (~> 2.2)
      rails-html-sanitizer (~> 1.6)
      useragent (~> 0.16)
    actionpack-xml_parser (2.0.1)
      actionpack (>= 5.0)
      railties (>= 5.0)
    actiontext (6.1.7.10)
      actionpack (= 6.1.7.10)
      activerecord (= 6.1.7.10)
      activestorage (= 6.1.7.10)
      activesupport (= 6.1.7.10)
    actiontext (7.2.2.1)
      actionpack (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activestorage (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      globalid (>= 0.6.0)
      nokogiri (>= 1.8.5)
    actionview (6.1.7.10)
      activesupport (= 6.1.7.10)
    actionview (7.2.2.1)
      activesupport (= 7.2.2.1)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (6.1.7.10)
      activesupport (= 6.1.7.10)
      erubi (~> 1.11)
      rails-dom-testing (~> 2.2)
      rails-html-sanitizer (~> 1.6)
    activejob (7.2.2.1)
      activesupport (= 7.2.2.1)
      globalid (>= 0.3.6)
    activemodel (6.1.7.10)
      activesupport (= 6.1.7.10)
    activerecord (6.1.7.10)
      activemodel (= 6.1.7.10)
      activesupport (= 6.1.7.10)
    activestorage (6.1.7.10)
      actionpack (= 6.1.7.10)
      activejob (= 6.1.7.10)
      activerecord (= 6.1.7.10)
      activesupport (= 6.1.7.10)
    activemodel (7.2.2.1)
      activesupport (= 7.2.2.1)
    activerecord (7.2.2.1)
      activemodel (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      timeout (>= 0.4.0)
    activestorage (7.2.2.1)
      actionpack (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      marcel (~> 1.0)
      mini_mime (>= 1.1.0)
    activesupport (6.1.7.10)
      concurrent-ruby (~> 1.0, >= 1.0.2)
    activesupport (7.2.2.1)
      base64
      benchmark (>= 0.3)
      bigdecimal
      concurrent-ruby (~> 1.0, >= 1.3.1)
      connection_pool (>= 2.2.5)
      drb
      i18n (>= 1.6, < 2)
      logger (>= 1.4.2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
      zeitwerk (~> 2.3)
      securerandom (>= 0.3)
      tzinfo (~> 2.0, >= 2.0.5)
    addressable (2.8.7)
      public_suffix (>= 2.0.2, < 7.0)
    ast (2.4.2)
    base64 (0.2.0)
    benchmark (0.4.0)
    bigdecimal (3.1.9)
    builder (3.3.0)
    bundle-audit (0.1.0)
      bundler-audit
    bundler-audit (0.9.2)
      bundler (>= 1.2.0, < 3)
      thor (~> 1.0)
    capybara (3.40.0)
      addressable
      matrix
@@ -80,14 +99,19 @@ GEM
    chunky_png (1.4.0)
    commonmarker (0.23.11)
    concurrent-ruby (1.3.5)
    connection_pool (2.5.0)
    crass (1.0.6)
    css_parser (1.21.1)
      addressable
    csv (3.2.9)
    date (3.4.1)
    debug (1.10.0)
      irb (~> 1.10)
      reline (>= 0.3.8)
    deckar01-task_list (2.3.2)
      html-pipeline
    docile (1.4.1)
    drb (2.2.1)
    erubi (1.13.1)
    ffi (1.17.1)
    globalid (1.2.1)
@@ -98,7 +122,12 @@ GEM
    htmlentities (4.3.4)
    i18n (1.14.7)
      concurrent-ruby (~> 1.0)
    json (2.10.1)
    io-console (0.8.0)
    irb (1.15.1)
      pp (>= 0.6.0)
      rdoc (>= 4.0.0)
      reline (>= 0.4.2)
    json (2.10.2)
    language_server-protocol (3.17.0.4)
    listen (3.9.0)
      rb-fsevent (~> 0.10, >= 0.10.3)
@@ -114,15 +143,14 @@ GEM
      net-smtp
    marcel (1.0.4)
    matrix (0.4.2)
    method_source (1.1.0)
    mini_magick (4.12.0)
    mini_magick (5.0.1)
    mini_mime (1.1.5)
    mini_portile2 (2.8.8)
    minitest (5.25.4)
    minitest (5.25.5)
    mocha (2.7.1)
      ruby2_keywords (>= 0.0.5)
    mysql2 (0.5.6)
    net-imap (0.3.8)
    net-imap (0.4.19)
      date
      net-protocol
    net-ldap (0.17.1)
@@ -130,10 +158,10 @@ GEM
      net-protocol
    net-protocol (0.2.2)
      timeout
    net-smtp (0.3.4)
    net-smtp (0.4.0.1)
      net-protocol
    nio4r (2.7.4)
    nokogiri (1.18.3)
    nokogiri (1.18.4)
      mini_portile2 (~> 2.8.2)
      racc (~> 1.4)
    parallel (1.26.3)
@@ -141,28 +169,43 @@ GEM
      ast (~> 2.4.1)
      racc
    pg (1.5.9)
    pp (0.6.2)
      prettyprint
    prettyprint (0.2.0)
    propshaft (1.1.0)
      actionpack (>= 7.0.0)
      activesupport (>= 7.0.0)
      rack
      railties (>= 7.0.0)
    psych (5.2.3)
      date
      stringio
    public_suffix (6.0.1)
    puma (6.6.0)
      nio4r (~> 2.0)
    racc (1.8.1)
    rack (2.2.13)
    rack (3.1.12)
    rack-session (2.1.0)
      base64 (>= 0.1.0)
      rack (>= 3.0.0)
    rack-test (2.2.0)
      rack (>= 1.3)
    rails (6.1.7.10)
      actioncable (= 6.1.7.10)
      actionmailbox (= 6.1.7.10)
      actionmailer (= 6.1.7.10)
      actionpack (= 6.1.7.10)
      actiontext (= 6.1.7.10)
      actionview (= 6.1.7.10)
      activejob (= 6.1.7.10)
      activemodel (= 6.1.7.10)
      activerecord (= 6.1.7.10)
      activestorage (= 6.1.7.10)
      activesupport (= 6.1.7.10)
    rackup (2.2.1)
      rack (>= 3)
    rails (7.2.2.1)
      actioncable (= 7.2.2.1)
      actionmailbox (= 7.2.2.1)
      actionmailer (= 7.2.2.1)
      actionpack (= 7.2.2.1)
      actiontext (= 7.2.2.1)
      actionview (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activemodel (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activestorage (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      bundler (>= 1.15.0)
      railties (= 6.1.7.10)
      sprockets-rails (>= 2.0.0)
      railties (= 7.2.2.1)
    rails-dom-testing (2.2.0)
      activesupport (>= 5.0.0)
      minitest
@@ -170,12 +213,14 @@ GEM
    rails-html-sanitizer (1.6.2)
      loofah (~> 2.21)
      nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
    railties (6.1.7.10)
      actionpack (= 6.1.7.10)
      activesupport (= 6.1.7.10)
      method_source
    railties (7.2.2.1)
      actionpack (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      irb (~> 1.13)
      rackup (>= 1.0.0)
      rake (>= 12.2)
      thor (~> 1.0)
      thor (~> 1.0, >= 1.2.2)
      zeitwerk (~> 2.6)
    rainbow (3.1.1)
    rake (13.2.1)
    rb-fsevent (0.11.2)
@@ -185,50 +230,51 @@ GEM
      htmlentities
      rbpdf-font (~> 1.19.0)
    rbpdf-font (1.19.1)
    redcarpet (3.6.1)
    rdoc (6.12.0)
      psych (>= 4.0.0)
    regexp_parser (2.10.0)
    request_store (1.5.1)
      rack (>= 1.4)
    reline (0.6.0)
      io-console (~> 0.5)
    rexml (3.4.1)
    roadie (5.2.1)
      css_parser (~> 1.4)
      nokogiri (~> 1.15)
    roadie-rails (3.1.0)
    roadie-rails (3.2.0)
      railties (>= 5.1, < 8.0)
      roadie (~> 5.0)
    rotp (6.3.0)
    rouge (4.2.1)
    rouge (4.5.1)
    rqrcode (2.2.0)
      chunky_png (~> 1.0)
      rqrcode_core (~> 1.0)
    rqrcode_core (1.2.0)
    rubocop (1.57.2)
    rubocop (1.68.0)
      json (~> 2.3)
      language_server-protocol (>= 3.17.0)
      parallel (~> 1.10)
      parser (>= 3.2.2.4)
      parser (>= 3.3.0.2)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 1.8, < 3.0)
      rexml (>= 3.2.5, < 4.0)
      rubocop-ast (>= 1.28.1, < 2.0)
      regexp_parser (>= 2.4, < 3.0)
      rubocop-ast (>= 1.32.2, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 2.4.0, < 3.0)
    rubocop-ast (1.38.1)
    rubocop-ast (1.39.0)
      parser (>= 3.3.1.0)
    rubocop-performance (1.19.1)
      rubocop (>= 1.7.0, < 2.0)
      rubocop-ast (>= 0.4.0)
    rubocop-rails (2.22.2)
    rubocop-performance (1.22.1)
      rubocop (>= 1.48.1, < 2.0)
      rubocop-ast (>= 1.31.1, < 2.0)
    rubocop-rails (2.27.0)
      activesupport (>= 4.2.0)
      rack (>= 1.1)
      rubocop (>= 1.33.0, < 2.0)
      rubocop-ast (>= 1.30.0, < 2.0)
      rubocop (>= 1.52.0, < 2.0)
      rubocop-ast (>= 1.31.1, < 2.0)
    ruby-progressbar (1.13.0)
    ruby2_keywords (0.0.5)
    rubyzip (2.3.2)
    sanitize (6.1.3)
      crass (~> 1.0.2)
      nokogiri (>= 1.12.0)
    securerandom (0.4.1)
    selenium-webdriver (4.29.1)
      base64 (~> 0.2)
      logger (~> 1.4)
@@ -241,20 +287,21 @@ GEM
      simplecov_json_formatter (~> 0.1)
    simplecov-html (0.13.1)
    simplecov_json_formatter (0.1.4)
    sprockets (4.2.1)
      concurrent-ruby (~> 1.0)
      rack (>= 2.2.4, < 4)
    sprockets-rails (3.5.2)
      actionpack (>= 6.1)
      activesupport (>= 6.1)
      sprockets (>= 3.0.0)
    sqlite3 (1.6.9)
    sqlite3 (1.7.3)
      mini_portile2 (~> 2.8.0)
    stringio (3.1.5)
    svg_optimizer (0.3.0)
      nokogiri
    svg_sprite (1.0.3)
      nokogiri
      svg_optimizer
      thor
    thor (1.3.2)
    timeout (0.4.3)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    unicode-display_width (2.6.0)
    useragent (0.16.11)
    webrick (1.9.1)
    websocket (1.2.11)
    websocket-driver (0.7.7)
@@ -275,9 +322,11 @@ PLATFORMS
DEPENDENCIES
  actionpack-xml_parser
  addressable
  bundle-audit
  capybara (>= 3.39)
  commonmarker (~> 0.23.8)
  csv (~> 3.2.6)
  csv (~> 3.2.8)
  debug
  deckar01-task_list (= 2.3.2)
  ffi
  html-pipeline (~> 2.13.2)
@@ -285,35 +334,35 @@ DEPENDENCIES
  listen (~> 3.3)
  mail (~> 2.8.1)
  marcel
  mini_magick (~> 4.12.0)
  mini_magick (~> 5.0.1)
  mini_mime (~> 1.1.0)
  mocha (>= 2.0.1)
  mysql2 (~> 0.5.0)
  net-imap (~> 0.3.4)
  net-imap (~> 0.4.8)
  net-ldap (~> 0.17.0)
  net-pop (~> 0.1.2)
  net-smtp (~> 0.3.3)
  nokogiri (= 1.18.3)
  net-smtp (~> 0.4.0)
  nokogiri (~> 1.18.3)
  pg (~> 1.5.3)
  propshaft (~> 1.1.0)
  puma
  rails (= 6.1.7.10)
  rack (>= 3.1.3)
  rails (= 7.2.2.1)
  rails-dom-testing
  rbpdf (~> 1.21.3)
  redcarpet (~> 3.6.0)
  request_store (~> 1.5.0)
  rexml
  roadie-rails (~> 3.1.0)
  roadie-rails (~> 3.2.0)
  rotp (>= 5.0.0)
  rouge (~> 4.2.0)
  rouge (~> 4.5)
  rqrcode
  rubocop (~> 1.57.0)
  rubocop-performance (~> 1.19.0)
  rubocop-rails (~> 2.22.1)
  rubocop (~> 1.68.0)
  rubocop-performance (~> 1.22.0)
  rubocop-rails (~> 2.27.0)
  rubyzip (~> 2.3.0)
  sanitize (~> 6.0)
  selenium-webdriver (>= 4.11.0)
  simplecov (~> 0.22.0)
  sqlite3 (~> 1.6.0)
  sqlite3 (~> 1.7.0)
  svg_sprite
  tzinfo-data
  webrick
  with_advisory_lock
+286 −138

File changed.

Preview size limit exceeded, changes collapsed.

+7 −7
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, bundlerEnv, ruby_3_2, makeWrapper, nixosTests }:
{ lib, stdenv, fetchurl, bundlerEnv, ruby, makeWrapper, nixosTests }:

let
  version = "5.1.7";
  version = "6.0.4";
  rubyEnv = bundlerEnv {
    name = "redmine-env-${version}";

    ruby = ruby_3_2;
    inherit ruby;
    gemdir = ./.;
    groups = [ "development" "ldap" "markdown" "common_mark" "minimagick" "test" ];
  };
@@ -16,7 +16,7 @@ in

    src = fetchurl {
      url = "https://www.redmine.org/releases/redmine-${version}.tar.gz";
      hash = "sha256-x1x94iWzyekg298u3dpse0VCIamYiQdxGnENg+UCcx4=";
      hash = "sha256-vr+Ky0/RhD+I5fQoX/C0l/q0MyDDPngKXDThEkxeF3o=";
    };

    nativeBuildInputs = [ makeWrapper ];
@@ -28,13 +28,14 @@ in

    buildPhase = ''
      mv config config.dist
      mv public/themes public/themes.dist
      mv themes themes.dist
    '';

    installPhase = ''
      mkdir -p $out/bin $out/share
      cp -r . $out/share/redmine
      for i in config files log plugins public/plugin_assets public/themes tmp; do
      mkdir $out/share/redmine/public/assets
      for i in config files log plugins public/assets public/plugin_assets themes tmp; do
        rm -rf $out/share/redmine/$i
        ln -fs /run/redmine/$i $out/share/redmine/$i
      done
@@ -50,6 +51,5 @@ in
      platforms = platforms.linux;
      maintainers = with maintainers; [ aanderse felixsinger megheaiulian ];
      license = licenses.gpl2;
      knownVulnerabilities = [ "CVE-2024-54133" ];
    };
  }