···235235 </listitem>
236236 <listitem>
237237 <para>
238238+ riak package removed along with
239239+ <literal>services.riak</literal> module, due to lack of
240240+ maintainer to update the package.
241241+ </para>
242242+ </listitem>
243243+ <listitem>
244244+ <para>
238245 (Neo)Vim can not be configured with
239246 <literal>configure.pathogen</literal> anymore to reduce
240247 maintainance burden. Use <literal>configure.packages</literal>
+2
nixos/doc/manual/release-notes/rl-2211.section.md
···9393- PHP 7.4 is no longer supported due to upstream not supporting this
9494 version for the entire lifecycle of the 22.11 release.
95959696+- riak package removed along with `services.riak` module, due to lack of maintainer to update the package.
9797+9698- (Neo)Vim can not be configured with `configure.pathogen` anymore to reduce maintainance burden.
9799Use `configure.packages` instead.
98100
···9797 (mkRemovedOptionModule [ "services" "gogoclient" ] "The corresponding package was removed from nixpkgs.")
9898 (mkRemovedOptionModule [ "services" "virtuoso" ] "The corresponding package was removed from nixpkgs.")
9999 (mkRemovedOptionModule [ "services" "openfire" ] "The corresponding package was removed from nixpkgs.")
100100+ (mkRemovedOptionModule [ "services" "riak" ] "The corresponding package was removed from nixpkgs.")
100101101102 # Do NOT add any option renames here, see top of the file
102103 ];
-162
nixos/modules/services/databases/riak.nix
···11-{ config, lib, pkgs, ... }:
22-33-with lib;
44-55-let
66-77- cfg = config.services.riak;
88-99-in
1010-1111-{
1212-1313- ###### interface
1414-1515- options = {
1616-1717- services.riak = {
1818-1919- enable = mkEnableOption "riak";
2020-2121- package = mkOption {
2222- type = types.package;
2323- default = pkgs.riak;
2424- defaultText = literalExpression "pkgs.riak";
2525- description = ''
2626- Riak package to use.
2727- '';
2828- };
2929-3030- nodeName = mkOption {
3131- type = types.str;
3232- default = "riak@127.0.0.1";
3333- description = ''
3434- Name of the Erlang node.
3535- '';
3636- };
3737-3838- distributedCookie = mkOption {
3939- type = types.str;
4040- default = "riak";
4141- description = ''
4242- Cookie for distributed node communication. All nodes in the
4343- same cluster should use the same cookie or they will not be able to
4444- communicate.
4545- '';
4646- };
4747-4848- dataDir = mkOption {
4949- type = types.path;
5050- default = "/var/db/riak";
5151- description = ''
5252- Data directory for Riak.
5353- '';
5454- };
5555-5656- logDir = mkOption {
5757- type = types.path;
5858- default = "/var/log/riak";
5959- description = ''
6060- Log directory for Riak.
6161- '';
6262- };
6363-6464- extraConfig = mkOption {
6565- type = types.lines;
6666- default = "";
6767- description = ''
6868- Additional text to be appended to <filename>riak.conf</filename>.
6969- '';
7070- };
7171-7272- extraAdvancedConfig = mkOption {
7373- type = types.lines;
7474- default = "";
7575- description = ''
7676- Additional text to be appended to <filename>advanced.config</filename>.
7777- '';
7878- };
7979-8080- };
8181-8282- };
8383-8484- ###### implementation
8585-8686- config = mkIf cfg.enable {
8787-8888- environment.systemPackages = [ cfg.package ];
8989- environment.etc."riak/riak.conf".text = ''
9090- nodename = ${cfg.nodeName}
9191- distributed_cookie = ${cfg.distributedCookie}
9292-9393- platform_log_dir = ${cfg.logDir}
9494- platform_etc_dir = /etc/riak
9595- platform_data_dir = ${cfg.dataDir}
9696-9797- ${cfg.extraConfig}
9898- '';
9999-100100- environment.etc."riak/advanced.config".text = ''
101101- ${cfg.extraAdvancedConfig}
102102- '';
103103-104104- users.users.riak = {
105105- name = "riak";
106106- uid = config.ids.uids.riak;
107107- group = "riak";
108108- description = "Riak server user";
109109- };
110110-111111- users.groups.riak.gid = config.ids.gids.riak;
112112-113113- systemd.services.riak = {
114114- description = "Riak Server";
115115-116116- wantedBy = [ "multi-user.target" ];
117117- after = [ "network.target" ];
118118-119119- path = [
120120- pkgs.util-linux # for `logger`
121121- pkgs.bash
122122- ];
123123-124124- environment.HOME = "${cfg.dataDir}";
125125- environment.RIAK_DATA_DIR = "${cfg.dataDir}";
126126- environment.RIAK_LOG_DIR = "${cfg.logDir}";
127127- environment.RIAK_ETC_DIR = "/etc/riak";
128128-129129- preStart = ''
130130- if ! test -e ${cfg.logDir}; then
131131- mkdir -m 0755 -p ${cfg.logDir}
132132- chown -R riak ${cfg.logDir}
133133- fi
134134-135135- if ! test -e ${cfg.dataDir}; then
136136- mkdir -m 0700 -p ${cfg.dataDir}
137137- chown -R riak ${cfg.dataDir}
138138- fi
139139- '';
140140-141141- serviceConfig = {
142142- ExecStart = "${cfg.package}/bin/riak console";
143143- ExecStop = "${cfg.package}/bin/riak stop";
144144- StandardInput = "tty";
145145- User = "riak";
146146- Group = "riak";
147147- PermissionsStartOnly = true;
148148- # Give Riak a decent amount of time to clean up.
149149- TimeoutStopSec = 120;
150150- LimitNOFILE = 65536;
151151- };
152152-153153- unitConfig.RequiresMountsFor = [
154154- "${cfg.dataDir}"
155155- "${cfg.logDir}"
156156- "/etc/riak"
157157- ];
158158- };
159159-160160- };
161161-162162-}
+3
nixos/modules/services/matrix/appservice-irc.nix
···153153 systemd.services.matrix-appservice-irc = {
154154 description = "Matrix-IRC bridge";
155155 before = [ "matrix-synapse.service" ]; # So the registration can be used by Synapse
156156+ after = lib.optionals (cfg.settings.database.engine == "postgres") [
157157+ "postgresql.service"
158158+ ];
156159 wantedBy = [ "multi-user.target" ];
157160158161 preStart = ''
···59596060 nativeBuildInputs = [ rubyEnv.wrappedRuby rubyEnv.bundler nodejs yarn git cacert ];
61616262- # Since version 12.6.0, the rake tasks need the location of git,
6363- # so we have to apply the location patches here too.
6464- patches = [ ./remove-hardcoded-locations.patch ];
6262+ patches = [
6363+ # Since version 12.6.0, the rake tasks need the location of git,
6464+ # so we have to apply the location patches here too.
6565+ ./remove-hardcoded-locations.patch
6666+6767+ # Gitlab edited the default database config since [1] and the
6868+ # installer complains about valid keywords only being "main" and "ci".
6969+ #
7070+ # [1]: https://gitlab.com/gitlab-org/gitlab/-/commit/99c0fac52b10cd9df62bbe785db799352a2d9028
7171+ ./Remove-geo-from-database.yml.patch
7272+ ];
6573 # One of the patches uses this variable - if it's unset, execution
6674 # of rake tasks fails.
6775 GITLAB_LOG_PATH = "log";
···11-{ lib, stdenv, fetchFromGitHub, writeScript, makeWrapper, ncurses, libX11 }:
11+{ pkgs, lib, stdenv, fetchFromGitHub, writeScript, makeWrapper, ncurses, libX11 }:
2233let
44 setup = writeScript "setup" ''
···46464747 runHook postInstall
4848 '';
4949+5050+ passthru.tests = {
5151+ saveDirCreation = pkgs.runCommand "save-dir-creation" {} ''
5252+ HOME=$(pwd) ${lib.getExe pkgs.sil-q} --help
5353+ test -d .sil && touch $out
5454+ '';
5555+ };
49565057 meta = {
5158 description = "A roguelike game set in the First Age of Middle-earth";
+24-10
pkgs/games/sil/default.nix
···11-{ lib, stdenv, fetchzip, ncurses, libX11, libXaw, libXt, libXext, libXmu, makeWrapper, writeScript, ... }:
11+{ pkgs, lib, stdenv, fetchzip, ncurses, libX11, libXaw, libXt, libXext, libXmu
22+, makeWrapper, writeScript }:
33+24let
35 setup = writeScript "setup" ''
46 mkdir -p "$ANGBAND_PATH"
···1517 src = fetchzip {
1618 url = "http://www.amirrorclear.net/flowers/game/sil/Sil-130-src.zip";
1719 sha256 = "1amp2mr3fxascra0k76sdsvikjh8g76nqh46kka9379zd35lfq8w";
1818- stripRoot=false;
2020+ stripRoot = false;
1921 };
20222123 nativeBuildInputs = [ makeWrapper ];
···25272628 makefile = "Makefile.std";
27292828- prePatch = ''
3030+ postPatch = ''
2931 # Allow usage of ANGBAND_PATH
3032 substituteInPlace config.h --replace "#define FIXED_PATHS" ""
3133 '';
···4143 NIX_CFLAGS_COMPILE = "-fcommon";
42444345 installPhase = ''
4444- # the makefile doesn't have a sensible install target, so we hav to do it ourselves
4646+ runHook preInstall
4747+4848+ # the makefile doesn't have a sensible install target, so we have to do it ourselves
4549 mkdir -p $out/bin
4650 cp sil $out/bin/sil
4747- # Wrap the program to set a user-local ANGBAND_PATH, and run the setup script to copy files into place
5151+5252+ # Wrap the program to set a user-local ANGBAND_PATH, and run the setup script to copy files into place.
4853 # We could just use the options for a user-local save and scores dir, but it tried to write to the
4954 # lib directory anyway, so we might as well give everyone a copy
5055 wrapProgram $out/bin/sil \
5151- --run "set -u" \
5256 --run "export ANGBAND_PATH=\$HOME/.sil" \
5357 --run "${setup} ${src}/Sil/lib"
5858+5959+ runHook postInstall
5460 '';
55616262+ passthru.tests = {
6363+ saveDirCreation = pkgs.runCommand "save-dir-creation" {} ''
6464+ HOME=$(pwd) ${lib.getExe pkgs.sil} --help
6565+ test -d .sil && touch $out
6666+ '';
6767+ };
6868+5669 meta = {
5757- description = "A rouge-like game set in the first age of Middle-earth";
7070+ description = "A rogue-like game set in the First Age of Middle-earth";
5871 longDescription = ''
5959- A game of adventure set in the first age of Middle-earth, when the world still
6060- rang with elven song and gleamed with dwarven mail.
7272+ A game of adventure set in the First Age of Middle-earth, when the world still
7373+ rang with Elven song and gleamed with Dwarven mail.
61746275 Walk the dark halls of Angband. Slay creatures black and fell. Wrest a shining
6376 Silmaril from Morgoth’s iron crown.
6477 '';
6578 homepage = "http://www.amirrorclear.net/flowers/game/sil/index.html";
6679 license = lib.licenses.gpl2;
6767- maintainers = [ lib.maintainers.michaelpj ];
8080+ maintainers = with lib.maintainers; [ michaelpj kenran ];
6881 platforms = lib.platforms.linux;
8282+ mainProgram = "sil";
6983 };
7084}
···12181218 retroArchCores = throw "retroArchCores has been removed. Please use overrides instead, e.g.: `retroarch.override { cores = with libretro; [ ... ]; }`"; # Added 2021-11-19
12191219 retroshare06 = retroshare;
12201220 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # Added 2020-08-23
12211221+ riak = throw "riak has been removed due to lack of maintainer to update the package"; # Added 2022-06-22
12211222 riak-cs = throw "riak-cs is not maintained anymore"; # Added 2020-10-14
12221223 rimshot = throw "rimshot has been removed, because it is broken and no longer maintained upstream"; # Added 2022-01-15
12231224 ring-daemon = jami-daemon; # Added 2021-10-26