Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 7, 2023
2 parents eb8821a + aa7d667 commit 1ad73cb
Show file tree
Hide file tree
Showing 52 changed files with 319 additions and 200 deletions.
5 changes: 5 additions & 0 deletions nixos/doc/manual/release-notes/rl-2305.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- [gmediarender](https://github.com/hzeller/gmrender-resurrect), a simple, headless UPnP/DLNA renderer. Available as [services.gmediarender](options.html#opt-services.gmediarender.enable).

- [hyprland](https://github.com/hyprwm/hyprland), a dynamic tiling Wayland compositor that doesn't sacrifice on its looks. Available as [programs.hyprland](#opt-programs.hyprland.enable).

- [stevenblack-blocklist](https://github.com/StevenBlack/hosts), A unified hosts file with base extensions for blocking unwanted websites. Available as [networking.stevenblack](options.html#opt-networking.stevenblack.enable).

- [Budgie Desktop](https://github.com/BuddiesOfBudgie/budgie-desktop), a familiar, modern desktop environment. Availabe as [services.xserver.desktopManager.budgie](options.html#opt-services.xserver.desktopManager.budgie).
Expand Down Expand Up @@ -219,6 +221,9 @@ In addition to numerous new and upgraded packages, this release has the followin

- `go-ethereum` package has been updated to v1.11.5 and the `puppeth` command is no longer available as of v1.11.0.

- The `pnpm` package has be updated to from version 7.29.1 to version 8.1.1 and Node.js 14 support has been discontinued (though, there are workarounds if Node.js 14 is still required)
- Migration instructions: ["Before updating pnpm to v8 in your CI, regenerate your pnpm-lock.yaml. To upgrade your lockfile, run pnpm install and commit the changes. Existing dependencies will not be updated; however, due to configuration changes in pnpm v8, some missing peer dependencies may be added to the lockfile and some packages may get deduplicated. You can commit the new lockfile even before upgrading Node.js in the CI, as pnpm v7 already supports the new lockfile format."](https://github.com/pnpm/pnpm/releases/tag/v8.0.0)

## Other Notable Changes {#sec-release-23.05-notable-changes}

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
./programs/haguichi.nix
./programs/hamster.nix
./programs/htop.nix
./programs/hyprland.nix
./programs/iay.nix
./programs/iftop.nix
./programs/i3lock.nix
Expand Down
84 changes: 84 additions & 0 deletions nixos/modules/programs/hyprland.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{ config
, lib
, pkgs
, ...
}:
with lib; let
cfg = config.programs.hyprland;

defaultHyprlandPackage = pkgs.hyprland.override {
enableXWayland = cfg.xwayland.enable;
hidpiXWayland = cfg.xwayland.hidpi;
nvidiaPatches = cfg.nvidiaPatches;
};
in
{
options.programs.hyprland = {
enable = mkEnableOption null // {
description = mdDoc ''
Hyprland, the dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
You can manually launch Hyprland by executing {command}`Hyprland` on a TTY.
A configuration file will be generated in {file}`~/.config/hypr/hyprland.conf`.
See <https://wiki.hyprland.org> for more information.
'';
};

package = mkOption {
type = types.path;
default = defaultHyprlandPackage;
defaultText = literalExpression ''
pkgs.hyprland.override {
enableXWayland = config.programs.hyprland.xwayland.enable;
hidpiXWayland = config.programs.hyprland.xwayland.hidpi;
nvidiaPatches = config.programs.hyprland.nvidiaPatches;
}
'';
example = literalExpression "<Hyprland flake>.packages.<system>.default";
description = mdDoc ''
The Hyprland package to use.
Setting this option will make {option}`programs.hyprland.xwayland` and
{option}`programs.hyprland.nvidiaPatches` not work.
'';
};

xwayland = {
enable = mkEnableOption (mdDoc "XWayland") // { default = true; };
hidpi = mkEnableOption null // {
description = mdDoc ''
Enable HiDPI XWayland, based on [XWayland MR 733](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/733).
See <https://wiki.hyprland.org/Nix/Options-Overrides/#xwayland-hidpi> for more info.
'';
};
};

nvidiaPatches = mkEnableOption (mdDoc "patching wlroots for better Nvidia support");
};

config = mkIf cfg.enable {
environment = {
systemPackages = [ cfg.package ];

};

fonts.enableDefaultFonts = mkDefault true;
hardware.opengl.enable = mkDefault true;

programs = {
dconf.enable = mkDefault true;
xwayland.enable = mkDefault true;
};

security.polkit.enable = true;

services.xserver.displayManager.sessionPackages = [ cfg.package ];

xdg.portal = {
enable = mkDefault true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
];
};
};
}
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 = "6.4.0";
version = "7.0.0";

src = fetchFromGitHub {
owner = "hluk";
repo = "CopyQ";
rev = "v${version}";
hash = "sha256-HpWzIABzg0oJqzIehIGpeATLs3ZlmLgtRKaiMIUNAFI=";
hash = "sha256-Wk1kTbL6LYgs1edazU39LlNZMAAm6wDbEPjuXvb5EkE=";
};

nativeBuildInputs = [
Expand Down
19 changes: 0 additions & 19 deletions pkgs/applications/misc/slmenu/default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/applications/misc/syncthingtray/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ https://github.com/NixOS/nixpkgs/issues/199596#issuecomment-1310136382 */
}:

mkDerivation rec {
version = "1.3.3";
version = "1.4.1";
pname = "syncthingtray";

src = fetchFromGitHub {
owner = "Martchus";
repo = "syncthingtray";
rev = "v${version}";
sha256 = "sha256-6H5pV7/E4MP9UqVpm59DqfcK8Z8GwknO3+oWxAcnIsk=";
sha256 = "sha256-6s78vytYxU7FWGQRO56qgmtZBlHbXMz3iVAbBXycDmI=";
};

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/office/ledger/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

stdenv.mkDerivation rec {
pname = "ledger";
version = "3.3.1";
version = "3.3.2";

src = fetchFromGitHub {
owner = "ledger";
repo = "ledger";
rev = "v${version}";
hash = "sha256-CnMzsFKBNiXmatgY7aiK8UCqIL6qifA4KbV6BJaza40=";
hash = "sha256-Uym4s8EyzXHlISZqThcb6P1H5bdgD9vmdIOLkk5ikG0=";
};

outputs = [ "out" "dev" ] ++ lib.optionals usePython [ "py" ];
Expand Down
15 changes: 7 additions & 8 deletions pkgs/desktops/deepin/apps/deepin-album/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
, dtkwidget
, qt5integration
, qt5platform-plugins
, qtbase
, qtsvg
, udisks2-qt5
, gio-qt
, image-editor
Expand All @@ -16,7 +18,6 @@
, opencv
, ffmpeg
, ffmpegthumbnailer
, qtbase
}:

stdenv.mkDerivation rec {
Expand All @@ -35,9 +36,7 @@ stdenv.mkDerivation rec {
substituteInPlace libUnionImage/CMakeLists.txt \
--replace "/usr" "$out"
substituteInPlace src/CMakeLists.txt \
--replace "set(PREFIX /usr)" "set(PREFIX $out)" \
--replace "/usr/bin" "$out/bin" \
--replace "/usr/share/deepin-manual/manual-assets/application/)" "share/deepin-manual/manual-assets/application/)"
--replace "/usr" "$out"
'';

nativeBuildInputs = [
Expand All @@ -49,7 +48,10 @@ stdenv.mkDerivation rec {

buildInputs = [
dtkwidget
qt5integration
qt5platform-plugins
qtbase
qtsvg
udisks2-qt5
gio-qt
image-editor
Expand All @@ -60,10 +62,7 @@ stdenv.mkDerivation rec {
ffmpegthumbnailer
];

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];
strictDeps = true;

cmakeFlags = [ "-DVERSION=${version}" ];

Expand Down
12 changes: 7 additions & 5 deletions pkgs/desktops/deepin/apps/deepin-calculator/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
, dtkwidget
, qt5integration
, qt5platform-plugins
, qtbase
, qtsvg
, dde-qt-dbus-factory
, cmake
, qtbase
, qttools
, pkg-config
, wrapQtAppsHook
Expand All @@ -33,14 +34,15 @@ stdenv.mkDerivation rec {

buildInputs = [
dtkwidget
qt5integration
qt5platform-plugins
qtbase
qtsvg
dde-qt-dbus-factory
gtest
];

qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
"--prefix QT_QPA_PLATFORM_PLUGIN_PATH : ${qt5platform-plugins}/${qtbase.qtPluginPrefix}"
];
strictDeps = true;

cmakeFlags = [ "-DVERSION=${version}" ];

Expand Down
9 changes: 5 additions & 4 deletions pkgs/desktops/deepin/apps/deepin-camera/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ stdenv.mkDerivation rec {

postPatch = ''
substituteInPlace src/CMakeLists.txt \
--replace "/usr/share/libimagevisualresult/filter_cube" "${image-editor}/share/libimagevisualresult/filter_cube" \
--replace "/usr/share/libimagevisualresult" "${image-editor}/share/libimagevisualresult" \
--replace "/usr/include/libusb-1.0" "${lib.getDev libusb1}/include/libusb-1.0"
substituteInPlace src/com.deepin.Camera.service \
--replace "/usr/bin/qdbus" "${lib.getBin qttools}/bin/qdbus" \
--replace "/usr/share/applications/deepin-camera.desktop" "$out/share/applications/deepin-camera.desktop"
--replace "/usr/share" "$out/share"
'';

nativeBuildInputs = [
Expand All @@ -52,6 +52,7 @@ stdenv.mkDerivation rec {

buildInputs = [
dtkwidget
qt5integration
qt5platform-plugins
image-editor
qtbase
Expand All @@ -70,14 +71,14 @@ stdenv.mkDerivation rec {

cmakeFlags = [ "-DVERSION=${version}" ];

strictDeps = true;

env.NIX_CFLAGS_COMPILE = toString [
"-I${gst_all_1.gstreamer.dev}/include/gstreamer-1.0"
"-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
];

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ ffmpeg ffmpegthumbnailer gst_all_1.gstreamer gst_all_1.gst-plugins-base libusb1 libv4l portaudio systemd ]}"
];

Expand Down
6 changes: 1 addition & 5 deletions pkgs/desktops/deepin/apps/deepin-clone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ stdenv.mkDerivation rec {
buildInputs = [
qtbase
dtkwidget
qt5integration
qt5platform-plugins
libuuid
parted
Expand All @@ -61,11 +62,6 @@ stdenv.mkDerivation rec {

strictDeps = true;

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];

meta = with lib; {
description = "Disk and partition backup/restore tool";
homepage = "https://github.com/linuxdeepin/deepin-clone";
Expand Down
6 changes: 1 addition & 5 deletions pkgs/desktops/deepin/apps/deepin-compressor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ stdenv.mkDerivation rec {

buildInputs = [
dtkwidget
qt5integration
qt5platform-plugins
udisks2-qt5
kcodecs
Expand All @@ -60,11 +61,6 @@ stdenv.mkDerivation rec {

strictDeps = true;

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];

meta = with lib; {
description = "A fast and lightweight application for creating and extracting archives";
homepage = "https://github.com/linuxdeepin/deepin-compressor";
Expand Down
6 changes: 1 addition & 5 deletions pkgs/desktops/deepin/apps/deepin-draw/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ stdenv.mkDerivation rec {

buildInputs = [
qtbase
qt5integration
qtsvg
dtkwidget
qt5platform-plugins
Expand All @@ -55,11 +56,6 @@ stdenv.mkDerivation rec {

strictDeps = true;

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];

meta = with lib; {
description = "Lightweight drawing tool for users to freely draw and simply edit images";
homepage = "https://github.com/linuxdeepin/deepin-draw";
Expand Down
6 changes: 1 addition & 5 deletions pkgs/desktops/deepin/apps/deepin-editor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ stdenv.mkDerivation rec {
qtbase
qtsvg
dtkwidget
qt5integration
qt5platform-plugins
dde-qt-dbus-factory
kcodecs
Expand All @@ -68,11 +69,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [ "-DVERSION=${version}" ];

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];

meta = with lib; {
description = "A desktop text editor that supports common text editing features";
homepage = "https://github.com/linuxdeepin/deepin-editor";
Expand Down
Loading

0 comments on commit 1ad73cb

Please sign in to comment.