Skip to content

Commit

Permalink
Merge branch 'NixOS:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
prinzdezibel authored Dec 10, 2024
2 parents 56fe166 + 66676a8 commit 06796c0
Show file tree
Hide file tree
Showing 22 changed files with 3,618 additions and 1,408 deletions.
12 changes: 6 additions & 6 deletions nixos/modules/services/databases/redis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ in {
'';
};
};
config.settings = mkMerge [
config.settings = lib.mkMerge [
{
inherit (config) port logfile databases maxclients appendOnly;
daemonize = false;
Expand All @@ -293,14 +293,14 @@ in {
slowlog-log-slower-than = config.slowLogLogSlowerThan;
slowlog-max-len = config.slowLogMaxLen;
}
(mkIf (config.bind != null) { inherit (config) bind; })
(mkIf (config.unixSocket != null) {
(lib.mkIf (config.bind != null) { inherit (config) bind; })
(lib.mkIf (config.unixSocket != null) {
unixsocket = config.unixSocket;
unixsocketperm = toString config.unixSocketPerm;
})
(mkIf (config.slaveOf != null) { slaveof = "${config.slaveOf.ip} ${toString config.slaveOf.port}"; })
(mkIf (config.masterAuth != null) { masterauth = config.masterAuth; })
(mkIf (config.requirePass != null) { requirepass = config.requirePass; })
(lib.mkIf (config.slaveOf != null) { slaveof = "${config.slaveOf.ip} ${toString config.slaveOf.port}"; })
(lib.mkIf (config.masterAuth != null) { masterauth = config.masterAuth; })
(lib.mkIf (config.requirePass != null) { requirepass = config.requirePass; })
];
}));
description = "Configuration of multiple `redis-server` instances.";
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/games/archisteamfarm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ in
RestrictSUIDSGID = true;
SecureBits = "noroot-locked";
SystemCallArchitectures = "native";
SystemCallFilter = [ "@system-service" "~@privileged" ];
SystemCallFilter = [ "@system-service" "~@privileged" "mincore" ];
UMask = "0077";
}
];
Expand Down
9 changes: 8 additions & 1 deletion pkgs/applications/editors/jetbrains/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ in {
IFS=' ' read -ra pluginArray <<< "$newPlugins"
for plugin in "''${pluginArray[@]}"
do
ln -s "$plugin" -t "$out/${rootDir}/plugins/"
pluginfiles=$(ls $plugin);
if [ $(echo $pluginfiles | wc -l) -eq 1 ] && echo $pluginfiles | grep -E "\.jar" 1> /dev/null; then
# if the plugin contains a single jar file, link it directly into the plugins folder
ln -s "$plugin/$(echo $pluginfiles | head -1)" $out/${rootDir}/plugins/
else
# otherwise link the plugin directory itself
ln -s "$plugin" -t $out/${rootDir}/plugins/
fi
done
sed "s|${ide.outPath}|$out|" \
-i $(realpath $out/bin/${meta.mainProgram})
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/misc/ArchiSteamFarm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
buildDotnetModule rec {
pname = "ArchiSteamFarm";
# nixpkgs-update: no auto update
version = "6.0.8.7";
version = "6.1.0.3";

src = fetchFromGitHub {
owner = "JustArchiNET";
repo = "ArchiSteamFarm";
rev = version;
hash = "sha256-PnHMJtM4lWuRn+7J9NxObEOJi4pbYEChcpcAJ+EdtSI=";
hash = "sha256-3NOeKdXb1tz4qx+tCs6QKfze2KLfyodKwt/aNx6tLvI=";
};

dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_9_0;
dotnet-sdk = dotnetCorePackages.sdk_9_0;

nugetDeps = ./deps.nix;

Expand All @@ -38,7 +38,7 @@ buildDotnetModule rec {
]
;
dotnetBuildFlags = [
"--framework=net8.0"
"--framework=net9.0"
];
dotnetInstallFlags = dotnetBuildFlags;

Expand Down
92 changes: 52 additions & 40 deletions pkgs/applications/misc/ArchiSteamFarm/deps.nix

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkgs/applications/misc/ArchiSteamFarm/web-ui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

buildNpmPackage rec {
pname = "asf-ui";
version = "7c5eb33a79736ca57acff776af4bd88816773247";
version = "c316254ddaf7837e7d43145268b53f91f23027dc";

src = fetchFromGitHub {
owner = "JustArchiNET";
repo = "ASF-ui";
# updated by the update script
# this is always the commit that should be used with asf-ui from the latest asf version
rev = version;
hash = "sha256-oOeXyhDnW2jeKGssxzgMIQElkH1uT5IALiXwxUg1ETQ=";
hash = "sha256-teM8x1/O5QFO7bMGc474Dp9ssOLfdmYkDt7PIuvJ4Ss=";
};

npmDepsHash = "sha256-nofLj2PaL+A/M6F6vteh4SmONmsQ5kLPOZ/jxokubgU=";
npmDepsHash = "sha256-8KqIUSWaeu5Tk8lw8F1O6KkXUfNqvjgxRNCePEMeLDo=";

installPhase = ''
runHook preInstall
Expand Down
7 changes: 4 additions & 3 deletions pkgs/applications/misc/lutris/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ let
in
buildPythonApplication rec {
pname = "lutris-unwrapped";
version = "0.5.17";
version = "0.5.18";

src = fetchFromGitHub {
owner = "lutris";
repo = "lutris";
rev = "v${version}";
hash = "sha256-Tr5k5LU0s75+1B17oK8tlgA6SlS1SHyyLS6UBKadUmw=";
hash = "sha256-dI5hqWBWrOGYUEM9Mfm7bTh7BEc4e+T9gJeiZ3BiqmE=";
};

nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ];
Expand Down Expand Up @@ -138,14 +138,15 @@ buildPythonApplication rec {
dontWrapGApps = true;
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath requiredTools}"
"--prefix APPIMAGE_EXTRACT_AND_RUN : 1"
"\${gappsWrapperArgs[@]}"
];

meta = with lib; {
homepage = "https://lutris.net";
description = "Open Source gaming platform for GNU/Linux";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Madouura ];
maintainers = with maintainers; [ Madouura rapiteanu ];
platforms = platforms.linux;
mainProgram = "lutris";
};
Expand Down
16 changes: 10 additions & 6 deletions pkgs/applications/misc/lutris/fhsenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
let

qt5Deps = pkgs: with pkgs.qt5; [ qtbase qtmultimedia ];
qt6Deps = pkgs: with pkgs.qt6; [ qtbase ];
gnomeDeps = pkgs: with pkgs; [ zenity gtksourceview gnome-desktop libgnome-keyring webkitgtk_4_0 ];
xorgDeps = pkgs: with pkgs.xorg; [
libX11 libXrender libXrandr libxcb libXmu libpthreadstubs libXext libXdmcp
Expand Down Expand Up @@ -34,6 +35,9 @@ in buildFHSEnv {
targetPkgs = pkgs: with pkgs; [
lutris-unwrapped

# Appimages
fuse

# Adventure Game Studio
allegro dumb

Expand All @@ -49,8 +53,8 @@ in buildFHSEnv {
# DGen // TODO: libarchive is broken

# Dolphin
bluez ffmpeg gettext portaudio miniupnpc mbedtls_2 lzo sfml gsm
wavpack orc nettle gmp pcre vulkan-loader
bluez ffmpeg_6 gettext portaudio miniupnpc mbedtls_2 lzo sfml gsm
wavpack orc nettle gmp pcre vulkan-loader zstd

# DOSBox
SDL_net SDL_sound
Expand Down Expand Up @@ -86,9 +90,8 @@ in buildFHSEnv {

# Redream // "redream is not available for the x86_64 architecture"


# rpcs3 // TODO: "error while loading shared libraries: libz.so.1..."
llvm
# RPCS3
llvm e2fsprogs libgpg-error

# ScummVM
nasm sndio
Expand All @@ -108,14 +111,15 @@ in buildFHSEnv {
# ZDOOM
soundfont-fluid bzip2 game-music-emu
] ++ qt5Deps pkgs
++ qt6Deps pkgs
++ gnomeDeps pkgs
++ lib.optional steamSupport pkgs.steam
++ extraPkgs pkgs;

multiPkgs = pkgs: with pkgs; [
# Common
libsndfile libtheora libogg libvorbis libopus libGLU libpcap libpulseaudio
libao libevdev udev libgcrypt libxml2 libusb-compat-0_1 libpng libmpeg2 libv4l
libao libevdev udev libgcrypt libxml2 libusb1 libpng libmpeg2 libv4l
libjpeg libxkbcommon libass libcdio libjack2 libsamplerate libzip libmad libaio
libcap libtiff libva libgphoto2 libxslt libsndfile giflib zlib glib
alsa-lib zziplib bash dbus keyutils zip cabextract freetype unzip coreutils
Expand Down
Loading

0 comments on commit 06796c0

Please sign in to comment.