···3636 WorkingDir = "/data";
3737 Volumes = { "/data" = { }; };
3838 };
3939+4040+ diskSize = 1024;
4141+ buildVMMemorySize = 512;
3942}
4043```
4144···5861> **_NOTE:_** Using this parameter requires the `kvm` device to be available.
59626063- `config` is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions).
6464+6565+- `diskSize` is used to specify the disk size of the VM used to build the image in megabytes. By default it's 1024 MiB.
6666+6767+- `buildVMMemorySize` is used to specify the memory size of the VM to build the image in megabytes. By default it's 512 MiB.
61686269After the new layer has been created, its closure (to which `contents`, `config` and `runAsRoot` contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied.
6370
···16161717 strictDeps = true;
18181919- patches =
2020- # This patch fixes a MIPS-specific bug in patchelf; we want Hydra
2121- # to generate a bootstrap-files tarball for MIPS that includes
2222- # this fix. The patches below can be dropped on the next version bump.
2323- lib.optionals stdenv.targetPlatform.isMips [
2424- # https://github.com/NixOS/patchelf/pull/380
2525- ./patches/380.patch
2626- ];
2727-2819 setupHook = [ ./setup-hook.sh ];
29203021 enableParallelBuilding = true;
···1818 # this allows us to include the bits of rails we use without pieces we do not.
1919 #
2020 # To issue a rails update bump the version number here
2121- rails_version = '6.1.4.7'
2121+ rails_version = '7.0.3.1'
2222 gem 'actionmailer', rails_version
2323 gem 'actionpack', rails_version
2424 gem 'actionview', rails_version
···31313232gem 'json'
33333434-gem 'sprockets'
3434+# TODO: At the moment Discourse does not work with Sprockets 4, we would need to correct internals
3535+# This is a desired upgrade we should get to.
3636+gem 'sprockets', '3.7.2'
35373638# this will eventually be added to rails,
3739# allows us to precompile all our templates in the unicorn master
···39414042gem 'seed-fu'
41434242-gem 'mail', git: 'https://github.com/discourse/mail.git', require: false
4444+gem 'mail', git: 'https://github.com/discourse/mail.git'
4345gem 'mini_mime'
4446gem 'mini_suffix'
4547···6668gem 'discourse-ember-rails', '0.18.6', require: 'ember-rails'
6769gem 'discourse-ember-source', '~> 3.12.2'
6870gem 'ember-handlebars-template', '0.8.0'
6969-gem 'discourse-fonts'
7171+gem 'discourse-fonts', require: 'discourse_fonts'
70727173gem 'barber'
7274···103105104106gem 'omniauth-google-oauth2'
105107106106-gem 'oj'
108108+# pending: https://github.com/ohler55/oj/issues/789
109109+gem 'oj', '3.13.14'
107110108111gem 'pg'
109112gem 'mini_sql'
···143146# Allow everywhere for now cause we are allowing asset debugging in production
144147group :assets do
145148 gem 'uglifier'
146146- gem 'rtlit', require: false # for css rtling
147149end
148150149151group :test do
···168170 gem 'shoulda-matchers', require: false
169171 gem 'rspec-html-matchers'
170172 gem 'byebug', require: ENV['RM_INFO'].nil?, platform: :mri
171171- gem "rubocop-discourse", require: false
173173+ gem 'rubocop-discourse', require: false, github: 'discourse/rubocop-discourse'
172174 gem 'parallel_tests'
173175174176 gem 'rswag-specs'
···188190 gem 'discourse_dev_assets'
189191 gem 'faker', "~> 2.16"
190192else
191191- group :development do
193193+ group :development, :test do
192194 gem 'discourse_dev_assets'
193195 gem 'faker', "~> 2.16"
194196 end
···266268gem 'maxminddb'
267269268270gem 'rails_failover', require: false
271271+272272+# workaround for faraday-net_http, see
273273+# https://github.com/ruby/net-imap/issues/16#issuecomment-803086765
274274+gem 'net-http'
···407407 gemfile_text = ''
408408 for line in repo.get_file('plugin.rb', rev).splitlines():
409409 if 'gem ' in line:
410410+ line = ','.join(filter(lambda x: ":require_name" not in x, line.split(',')))
410411 gemfile_text = gemfile_text + line + os.linesep
411412412413 version_file_match = version_file_regex.match(line)
+5
pkgs/tools/networking/phodav/default.nix
···44444545 outputs = [ "out" "dev" "lib" ];
46464747+ # We need to do this in pre-configure before the data/ folder disappears.
4848+ preConfigure = ''
4949+ install -vDt $out/lib/udev/rules.d/ data/*-spice-webdavd.rules
5050+ '';
5151+4752 meta = with lib; {
4853 description = "WebDav server implementation and library using libsoup";
4954 homepage = "https://wiki.gnome.org/phodav";