Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jun 23, 2024
2 parents 880dd0f + 65378f6 commit 5005a65
Show file tree
Hide file tree
Showing 64 changed files with 4,131 additions and 3,516 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@
for `stateVersion` ≥ 24.11. (It was previously using SQLite for structured
data and the filesystem for blobs).

- `libe57format` has been updated to `>= 3.0.0`, which contains some backward-incompatible API changes. See the [release note](https://github.com/asmaloney/libE57Format/releases/tag/v3.0.0) for more details.

- `zx` was updated to v8, which introduces several breaking changes.
See the [v8 changelog](https://github.com/google/zx/releases/tag/8.0.0) for more information.

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/programs/wayland/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ in

systemd = lib.mkIf cfg.systemd.setPath.enable {
user.extraConfig = ''
DefaultEnvironment="PATH=$PATH:/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin:/run/wrappers/bin"
DefaultEnvironment="PATH=/run/wrappers/bin:/etc/profiles/per-user/%u/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH"
'';
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ in {
serviceConfig = {
User = cfg.user;
StateDirectory = mkIf (hasPrefix "/var/lib/jenkins" cfg.home) "jenkins";
# For (possible) socket use
RuntimeDirectory = "jenkins";
};
};
};
Expand Down
9 changes: 6 additions & 3 deletions nixos/modules/services/desktop-managers/plasma6.nix
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,12 @@ in {
enable = true;
package = kdePackages.kwallet-pam;
};
kde.kwallet = {
enable = true;
package = kdePackages.kwallet-pam;
kde = {
allowNullPassword = true;
kwallet = {
enable = true;
package = kdePackages.kwallet-pam;
};
};
kde-fingerprint = lib.mkIf config.services.fprintd.enable { fprintAuth = true; };
kde-smartcard = lib.mkIf config.security.pam.p11.enable { p11Auth = true; };
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/desktop-managers/xfce.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ in
] # TODO: NetworkManager doesn't belong here
++ optional config.networking.networkmanager.enable networkmanagerapplet
++ optional config.powerManagement.enable xfce4-power-manager
++ optionals config.hardware.pulseaudio.enable [
++ optionals (config.hardware.pulseaudio.enable || config.services.pipewire.pulse.enable) [
pavucontrol
# volume up/down keys support:
# xfce4-pulseaudio-plugin includes all the functionalities of xfce4-volumed-pulse
Expand Down
31 changes: 20 additions & 11 deletions pkgs/applications/audio/spotify/linux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,15 @@ stdenv.mkDerivation {
# Prevent double wrapping
dontWrapGApps = true;

env = rec {
libdir = "${placeholder "out"}/lib/spotify";
librarypath = "${lib.makeLibraryPath deps}:${libdir}";
};

installPhase =
''
runHook preInstall
libdir=$out/lib/spotify
mkdir -p $libdir
mv ./usr/* $out/
Expand All @@ -147,16 +151,6 @@ stdenv.mkDerivation {
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $rpath $out/share/spotify/spotify
librarypath="${lib.makeLibraryPath deps}:$libdir"
wrapProgramShell $out/share/spotify/spotify \
''${gappsWrapperArgs[@]} \
${lib.optionalString (deviceScaleFactor != null) ''
--add-flags "--force-device-scale-factor=${toString deviceScaleFactor}" \
''} \
--prefix LD_LIBRARY_PATH : "$librarypath" \
--prefix PATH : "${gnome.zenity}/bin" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
# fix Icon line in the desktop file (#48062)
sed -i "s:^Icon=.*:Icon=spotify-client:" "$out/share/spotify/spotify.desktop"
Expand All @@ -175,6 +169,21 @@ stdenv.mkDerivation {
runHook postInstall
'';

fixupPhase = ''
runHook preFixup
wrapProgramShell $out/share/spotify/spotify \
''${gappsWrapperArgs[@]} \
${lib.optionalString (deviceScaleFactor != null) ''
--add-flags "--force-device-scale-factor=${toString deviceScaleFactor}" \
''} \
--prefix LD_LIBRARY_PATH : "$librarypath" \
--prefix PATH : "${gnome.zenity}/bin" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
runHook postFixup
'';

meta = meta // {
maintainers = with lib.maintainers; [ eelco ftrvxmtrx sheenobu timokau ma27 ];
};
Expand Down
87 changes: 72 additions & 15 deletions pkgs/applications/graphics/pixinsight/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,60 @@
{ stdenv, lib, requireFile, wrapQtAppsHook, autoPatchelfHook, makeWrapper, unixtools, fakeroot
, mailcap, libGL, libpulseaudio, alsa-lib, nss, gd, gst_all_1, nspr, expat, fontconfig
, dbus, glib, zlib, openssl, libdrm, cups, avahi-compat, xorg, wayland, libudev0-shim
# Qt 5 subpackages
, qtbase, qtgamepad, qtserialport, qtserialbus, qtvirtualkeyboard, qtmultimedia, qt3d, mlt
{ stdenv
, lib
, requireFile
, wrapQtAppsHook
, autoPatchelfHook
, makeWrapper
, unixtools
, fakeroot
, mailcap
, libGL
, libpulseaudio
, alsa-lib
, nss
, gd
, gst_all_1
, nspr
, expat
, fontconfig
, dbus
, glib
, zlib
, openssl
, libdrm
, cups
, avahi-compat
, xorg
, wayland
, libudev0-shim
, bubblewrap
, libjpeg8
, gdk-pixbuf
, gtk3
, pango
# Qt 6 subpackages
, qtbase
, qtserialport
, qtserialbus
, qtvirtualkeyboard
, qtmultimedia
, qt3d
, mlt
, qtlocation
, qtwebengine
, qtquick3d
, qtwayland
, qtwebview
, qtscxml
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "pixinsight";
version = "1.8.9-2";
version = "1.8.9-3";

src = requireFile rec {
name = "PI-linux-x64-${version}-20230920-c.tar.xz";
name = "PI-linux-x64-${finalAttrs.version}-20240619-c.tar.xz";
url = "https://pixinsight.com/";
hash = "sha256-g7paYTYv52XBg0w3d3YhVNrmt+iS20uobaUsvY6F3jM=";
hash = "sha256-WZrD+X7zE1i29+YsGJ+wbIXmlVon9bczHvvRAkQXz6M=";
message = ''
PixInsight is available from ${url} and requires a commercial (or trial) license.
After a license has been obtained, PixInsight can be downloaded from the software distribution
Expand All @@ -30,6 +72,7 @@ stdenv.mkDerivation rec {
autoPatchelfHook
mailcap
libudev0-shim
bubblewrap
];

buildInputs = [
Expand All @@ -53,15 +96,25 @@ stdenv.mkDerivation rec {
wayland
cups
avahi-compat
libjpeg8
gdk-pixbuf
gtk3
pango
# Qt stuff
qt3d
mlt
qtbase
qtgamepad
#qtgamepad
qtserialport
qtserialbus
qtvirtualkeyboard
qtmultimedia
qtlocation
qtwebengine
qtquick3d
qtwayland
qtwebview
qtscxml
] ++ (with xorg; [
libX11
libXdamage
Expand All @@ -86,9 +139,8 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin $out/opt/PixInsight $out/share/{applications,mime/packages,icons/hicolor}
fakeroot script -ec "./installer \
bwrap --bind /build /build --bind $out/opt /opt --bind /nix /nix --dev /dev fakeroot script -ec "./installer \
--yes \
--install-dir=$out/opt/PixInsight \
--install-desktop-dir=$out/share/applications \
--install-mime-dir=$out/share/mime \
--install-icons-dir=$out/share/icons/hicolor \
Expand All @@ -97,6 +149,11 @@ stdenv.mkDerivation rec {
rm -rf $out/opt/PixInsight-old-0
ln -s $out/opt/PixInsight/bin/PixInsight $out/bin/.
ln -s $out/opt/PixInsight/bin/lib $out/lib
# Remove signatures of plugins, as they are only working if actually installed
# under /opt. In the Nix setup, they are causing trouble.
find $out/opt/PixInsight/ -name "*.xsgn" -exec rm {} \;
'';

# Some very exotic Qt libraries are not available in nixpkgs
Expand All @@ -118,7 +175,7 @@ stdenv.mkDerivation rec {
];
dontWrapQtApps = true;
postFixup = ''
wrapProgram $out/opt/PixInsight/bin/PixInsight ${builtins.toString qtWrapperArgs}
wrapProgram $out/opt/PixInsight/bin/PixInsight ${builtins.toString finalAttrs.qtWrapperArgs}
'';

meta = with lib; {
Expand All @@ -128,7 +185,7 @@ stdenv.mkDerivation rec {
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = [ maintainers.sheepforce ];
hydraPlatforms = [];
hydraPlatforms = [ ];
mainProgram = "PixInsight";
};
}
})
4 changes: 2 additions & 2 deletions pkgs/applications/misc/copyq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

stdenv.mkDerivation rec {
pname = "CopyQ";
version = "8.0.0";
version = "9.0.0";

src = fetchFromGitHub {
owner = "hluk";
repo = "CopyQ";
rev = "v${version}";
hash = "sha256-Ewunl4k9f0aDjilhKAsVxwR3S6uSZ1xwtu6ccNsNOgk=";
hash = "sha256-Dxiytspqs4+bcnUM+B3lO8iQp9rrCvMfI+WMFMCtM7g=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/safeeyes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ with python3.pkgs;

buildPythonApplication rec {
pname = "safeeyes";
version = "2.1.8";
version = "2.1.9";

src = fetchPypi {
inherit pname version;
hash = "sha256-65U/j6P6X4JzhL0aEOnzKa/Al6SYprOOxix2dtcusJQ=";
hash = "sha256-Z1c1DVwCwPiOPvCYNsoXJBMfVzIQA+/6wStV8BShahc=";
};

postPatch = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/cluster/cmctl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@

buildGoModule rec {
pname = "cmctl";
version = "1.14.5";
version = "1.14.7";

src = fetchFromGitHub {
owner = "cert-manager";
repo = "cert-manager";
rev = "v${version}";
hash = "sha256-WitYq3/veaARZQHoseJnT5h0AGmXVlLzRe8KCOJuY0w=";
hash = "sha256-ZvrR8k1jiyAMUKM9VA6vKH2uhMKnd22OQe08CIlxXjs=";
};

sourceRoot = "${src.name}/cmd/ctl";

vendorHash = "sha256-27XvT33S/vgGo5MQDpHzTN+K1nNPR6OOFggzLhatygI=";
vendorHash = "sha256-qaSzAPNVe25Fbbfqy0OFFnMJ21IlWuoJKwnT7y2wmOs=";

ldflags = [
"-s"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/feedreaders/newsboat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

rustPlatform.buildRustPackage rec {
pname = "newsboat";
version = "2.35";
version = "2.36";

src = fetchFromGitHub {
owner = "newsboat";
repo = "newsboat";
rev = "r${version}";
hash = "sha256-WbicKP46N8MVjUeerYUdcHJO5Qf7rQFyYCpxexd2wDY=";
hash = "sha256-RnDnyRAZ71aE5st5wUcUKjFFGY288oFpiyDXAno15MQ=";
};

cargoHash = "sha256-B6U+DxIRm9Sn4x+dZCfNKENNDsTUVZFT6i0Yz47gjTs=";
cargoHash = "sha256-0z3G8j0Qk0HEDUKA7fmjFfNW956rRtzKO+0ltNQR4es=";

# TODO: Check if that's still needed
postPatch = lib.optionalString stdenv.isDarwin ''
Expand Down

This file was deleted.

Loading

0 comments on commit 5005a65

Please sign in to comment.