Unverified Commit 30c8da5f authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

rofi: 1.7.9.1 -> 2.0.0 (#440189)

parents 09630eb1 76ff4456
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -149,6 +149,10 @@

- `pulsemeeter` has been updated to `2.0.0`. The configuration file from older versions has to be deleted. For more information and instructions see the [v2.0.0 changelog entry](https://github.com/theRealCarneiro/pulsemeeter/releases/tag/v2.0.0).

- `rofi` has been updated to `2.0.0`. `rofi-wayland` and `rofi-wayland-unwrapped` have been merged into `rofi` and `rofi-unwrapped` respectively. For more information and instructions see the [v2.0.0 changelog entry](https://github.com/davatorium/rofi/releases/tag/2.0.0).

- `rofi-emoji-wayland` has been merged into `rofi-emoji` as `rofi` has been updated to `2.0.0` and supports both X11 & Wayland.

## Other Notable Changes {#sec-nixpkgs-release-25.11-notable-changes}

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ import ./versions.nix (
    ++ lib.optionals x11Support [ xclip ];

    meta = with lib; {
      description = "Emoji selector plugin for Rofi (built against ${rofi-unwrapped.pname})";
      description = "Emoji selector plugin for Rofi";
      homepage = "https://github.com/Mange/rofi-emoji";
      license = licenses.mit;
      maintainers = with maintainers; [
+46 −28
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  stdenv,
  bison,
  buildPackages,
  cairo,
  check,
  fetchFromGitHub,
  flex,
  git,
  glib,
  librsvg,
  libstartup_notification,
  libxcb,
  libxkbcommon,
  meson,
  ninja,
  pkg-config,
  libxkbcommon,
  pandoc,
  pango,
  pkg-config,
  wayland,
  wayland-protocols,
  wayland-scanner,
  which,
  git,
  cairo,
  libxcb,
  xcb-imdkit,
  xcbutil,
  xcb-util-cursor,
  xcbutilkeysyms,
  xcbutil,
  xcbutilwm,
  xcbutilxrm,
  libstartup_notification,
  bison,
  flex,
  librsvg,
  check,
  glib,
  buildPackages,
  pandoc,
  waylandSupport ? true,
  x11Support ? true,
}:

stdenv.mkDerivation rec {
  pname = "rofi-unwrapped";
  version = "1.7.9.1";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "davatorium";
    repo = "rofi";
    rev = version;
    fetchSubmodules = true;
    hash = "sha256-HZMVGlK6ig7kWf/exivoiTe9J/SLgjm7VwRm+KgKN44=";
    hash = "sha256-akKwIYH9OoCh4ZE/bxKPCppxXsUhplvfRjSGsdthFk4=";
  };

  preConfigure = ''
@@ -47,36 +52,46 @@ stdenv.mkDerivation rec {

  depsBuildBuild = [
    buildPackages.stdenv.cc
    pkg-config
    glib
    pkg-config
  ];
  nativeBuildInputs = [
    bison
    flex
    meson
    ninja
    pkg-config
    flex
    bison
    pandoc
    pkg-config
  ];
  buildInputs = [
    libxkbcommon
    pango
    cairo
    check
    git
    librsvg
    check
    libstartup_notification
    libxkbcommon
    pango
    which
  ]
  ++ lib.optionals waylandSupport [
    wayland
    wayland-protocols
    wayland-scanner
  ]
  ++ lib.optionals x11Support [
    libxcb
    xcb-imdkit
    xcbutil
    xcb-util-cursor
    xcbutilkeysyms
    xcbutil
    xcbutilwm
    xcbutilxrm
    which
  ];

  mesonFlags = [ "-Dimdkit=true" ];
  mesonFlags =
    lib.optionals x11Support [ "-Dimdkit=true" ]
    ++ lib.optionals (!waylandSupport) [ "-Dwayland=disabled" ]
    ++ lib.optionals (!x11Support) [ "-Dxcb=disabled" ];

  doCheck = false;

@@ -84,7 +99,10 @@ stdenv.mkDerivation rec {
    description = "Window switcher, run dialog and dmenu replacement";
    homepage = "https://github.com/davatorium/rofi";
    license = licenses.mit;
    maintainers = with maintainers; [ bew ];
    maintainers = with maintainers; [
      bew
      SchweGELBin
    ];
    platforms = with platforms; linux;
    mainProgram = "rofi";
  };
+0 −41
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rofi-unwrapped,
  wayland-scanner,
  pkg-config,
  wayland-protocols,
  wayland,
}:

rofi-unwrapped.overrideAttrs (oldAttrs: rec {
  pname = "rofi-wayland-unwrapped";
  version = "1.7.9+wayland1";

  src = fetchFromGitHub {
    owner = "lbonn";
    repo = "rofi";
    rev = version;
    fetchSubmodules = true;
    hash = "sha256-tLSU0Q221Pg3JYCT+w9ZT4ZbbB5+s8FwsZa/ehfn00s=";
  };

  depsBuildBuild = oldAttrs.depsBuildBuild ++ [ pkg-config ];
  nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [
    wayland-protocols
    wayland-scanner
  ];
  buildInputs = oldAttrs.buildInputs ++ [
    wayland
    wayland-protocols
  ];

  meta = with lib; {
    description = "Window switcher, run dialog and dmenu replacement for Wayland";
    homepage = "https://github.com/lbonn/rofi";
    license = licenses.mit;
    mainProgram = "rofi";
    maintainers = with maintainers; [ bew ];
    platforms = with platforms; linux;
  };
})
+2 −4
Original line number Diff line number Diff line
@@ -12,13 +12,12 @@
  findutils,
  gawk,
  gnused,
  rofi,
  # wayland-only deps
  rofi-wayland,
  pass-wayland,
  wl-clipboard,
  wtype,
  # x11-only deps
  rofi,
  pass,
  xclip,
  xdotool,
@@ -63,16 +62,15 @@ stdenv.mkDerivation {
      gnused
      libnotify
      pwgen
      rofi
      util-linux
    ]
    ++ lib.optionals (backend == "x11") [
      rofi
      (pass.withExtensions (ext: [ ext.pass-otp ]))
      xclip
      xdotool
    ]
    ++ lib.optionals (backend == "wayland") [
      rofi-wayland
      (pass-wayland.withExtensions (ext: [ ext.pass-otp ]))
      wl-clipboard
      wtype
Loading