Unverified Commit 33c8b1a7 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

Merge pull request #333074 from fufexan/hyprland

hyprland: 0.41.2 -> 0.42.0; aquamarine: 0.2.0 -> 0.3.1
parents 7fbfc53b a52cc315
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@
}:
mkHyprlandPlugin hyprland rec {
  pluginName = "hy3";
  version = "0.41.2";
  version = "0.42.0";

  src = fetchFromGitHub {
    owner = "outfoxxed";
    repo = "hy3";
    rev = "refs/tags/hl${version}";
    hash = "sha256-aZuNKBwTwj8EXkDBMWNdRKbHPx647wJLWm55h6jOKbo=";
    hash = "sha256-gyhpW3Mv9RgWsB8jAMoA7yoMSb01ol0jyPFNsghaZ0w=";
  };

  nativeBuildInputs = [ cmake ];
@@ -24,7 +24,7 @@ mkHyprlandPlugin hyprland rec {
    homepage = "https://github.com/outfoxxed/hy3";
    description = "Hyprland plugin for an i3 / sway like manual tiling layout";
    license = lib.licenses.gpl3;
    platforms = lib.platforms.linux;
    inherit (hyprland.meta) platforms;
    maintainers = with lib.maintainers; [
      aacebedo
      johnrtitor
+3 −3
Original line number Diff line number Diff line
@@ -14,13 +14,13 @@ let
            mkHyprlandPlugin,
          }:
          let
            version = "0.41.2";
            version = "0.42.0";

            hyprland-plugins-src = fetchFromGitHub {
              owner = "hyprwm";
              repo = "hyprland-plugins";
              rev = "refs/tags/v${version}";
              hash = "sha256-TnlAcO5K2gkab0mpKurP5Co6eWRycP/KbFqWNS2rsMA=";
              hash = "sha256-aPzAbDgAyxJlUjyaFPDhjcL7WnyDP5uDZKOqlQRD8eM=";
            };
          in
          mkHyprlandPlugin hyprland {
@@ -37,7 +37,7 @@ let
                fufexan
                johnrtitor
              ];
              platforms = lib.platforms.linux;
              inherit (hyprland.meta) platforms;
            };
          }
        )
+4 −6
Original line number Diff line number Diff line
@@ -22,13 +22,13 @@
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "aquamarine";
  version = "0.2.0";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "hyprwm";
    repo = "aquamarine";
    rev = "v${finalAttrs.version}";
    hash = "sha256-UKdFUKA/h6SeiXpQ06BSZkBJKDwFOFaGI3NtiuaDOhg=";
    hash = "sha256-1RYuBS/CQhtyIeXrLDvGWJhuVG1kiQMG+aYaBkoGnEU=";
  };

  nativeBuildInputs = [
@@ -62,9 +62,7 @@ stdenv.mkDerivation (finalAttrs: {

  cmakeBuildType = "RelWithDebInfo";

  passthru = {
    updateScript = nix-update-script { };
  };
  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/hyprwm/aquamarine/releases/tag/${finalAttrs.version}";
@@ -75,6 +73,6 @@ stdenv.mkDerivation (finalAttrs: {
      fufexan
      johnrtitor
    ];
    platforms = lib.platforms.linux;
    platforms = lib.platforms.linux ++ lib.platforms.freebsd;
  };
})
+4 −4
Original line number Diff line number Diff line
{
  "branch": "main",
  "commit_hash": "918d8340afd652b011b937d29d5eea0be08467f5",
  "commit_message": "flake.lock: update",
  "date": "2024-06-25",
  "tag": "v0.41.2"
  "commit_hash": "9a09eac79b85c846e3a865a9078a3f8ff65a9259",
  "commit_message": "props: bump version to 0.42.0",
  "date": "2024-08-07",
  "tag": "v0.42.0"
}
+116 −111
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, makeWrapper
, meson
, cmake
, ninja
, binutils
, cairo
, epoll-shim
, expat
, fribidi
, git
, hyprcursor
, hyprland-protocols
, hyprlang
, hyprutils
, hyprwayland-scanner
, jq
, libGL
, libdrm
, libdatrie
, libexecinfo
, libinput
, libselinux
, libsepol
, libthai
, libuuid
, libxkbcommon
, mesa
, pango
, pciutils
, pcre2
, pkgconf
, python3
, systemd
, tomlplusplus
, wayland
, wayland-protocols
, wayland-scanner
, xwayland
, hwdata
, seatd
, libdisplay-info
, libliftoff
, xorg
, debug ? false
, enableXWayland ? true
, legacyRenderer ? false
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, wrapRuntimeDeps ? true
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  makeWrapper,
  cmake,
  ninja,
  aquamarine,
  binutils,
  cairo,
  epoll-shim,
  expat,
  fribidi,
  git,
  hwdata,
  hyprcursor,
  hyprlang,
  hyprutils,
  hyprwayland-scanner,
  jq,
  libGL,
  libdatrie,
  libdisplay-info,
  libdrm,
  libexecinfo,
  libinput,
  libliftoff,
  libselinux,
  libsepol,
  libthai,
  libuuid,
  libxkbcommon,
  mesa,
  pango,
  pciutils,
  pcre2,
  pkgconf,
  python3,
  seatd,
  systemd,
  tomlplusplus,
  wayland,
  wayland-protocols,
  wayland-scanner,
  xorg,
  xwayland,
  debug ? false,
  enableXWayland ? true,
  legacyRenderer ? false,
  withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
  wrapRuntimeDeps ? true,
  # deprecated flags
, nvidiaPatches ? false
, hidpiXWayland ? false
, enableNvidiaPatches ? false
  nvidiaPatches ? false,
  hidpiXWayland ? false,
  enableNvidiaPatches ? false,
}:
let
  info = builtins.fromJSON (builtins.readFile ./info.json);
in
assert lib.assertMsg (!nvidiaPatches) "The option `nvidiaPatches` has been removed.";
assert lib.assertMsg (!enableNvidiaPatches) "The option `enableNvidiaPatches` has been removed.";
assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland";
assert lib.assertMsg (!hidpiXWayland)
  "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland";

stdenv.mkDerivation (finalAttrs: {
  pname = "hyprland" + lib.optionalString debug "-debug";
  version = "0.41.2";
  version = "0.42.0";

  src = fetchFromGitHub {
    owner = "hyprwm";
    repo = "hyprland";
    fetchSubmodules = true;
    rev = "refs/tags/v${finalAttrs.version}";
    hash = "sha256-JmfnYz+9a4TjNl3mAus1VpoWtTI9d1xkW9MHbkcV0Po=";
    hash = "sha256-deu8zvgseDg2gQEnZiCda4TrbA6pleE9iItoZlsoMtE=";
  };

  postPatch = ''
@@ -97,16 +98,14 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  nativeBuildInputs = [
    hwdata
    hyprwayland-scanner
    jq
    makeWrapper
    cmake
    meson # for wlroots
    ninja
    pkg-config
    wayland-scanner
    python3 # for udis86
    wayland-scanner
  ];

  outputs = [
@@ -115,54 +114,54 @@ stdenv.mkDerivation (finalAttrs: {
    "dev"
  ];

  buildInputs = [
  buildInputs =
    [
      aquamarine
      cairo
      expat
      fribidi
      git
      hwdata
      hyprcursor.dev
    hyprland-protocols
      hyprlang
      hyprutils
      libGL
      libdatrie
      libdisplay-info
      libdrm
      libinput
      libliftoff
      libselinux
      libsepol
      libthai
      libuuid
      libxkbcommon
      mesa
    wayland
    wayland-protocols
      pango
      pciutils
      pcre2
    tomlplusplus
    # for subproject wlroots-hyprland
      seatd
    libliftoff
    libdisplay-info
    xorg.xcbutilerrors
    xorg.xcbutilrenderutil
      tomlplusplus
      wayland
      wayland-protocols
    ]
    ++ lib.optionals stdenv.hostPlatform.isBSD [ epoll-shim ]
    ++ lib.optionals stdenv.hostPlatform.isMusl [ libexecinfo ]
    ++ lib.optionals enableXWayland [
      xorg.libxcb
      xorg.libXcursor
      xorg.libXdmcp
      xorg.xcbutil
      xorg.xcbutilerrors
      xorg.xcbutilrenderutil
      xorg.xcbutilwm
      xwayland
    ]
    ++ lib.optionals withSystemd [ systemd ];

  cmakeBuildType =
    if debug
    then "Debug"
    else "RelWithDebInfo";
  cmakeBuildType = if debug then "Debug" else "RelWithDebInfo";

  dontStrip = debug;

  cmakeFlags = [
    (lib.cmakeBool "NO_XWAYLAND" (!enableXWayland))
@@ -173,7 +172,13 @@ stdenv.mkDerivation (finalAttrs: {
  postInstall = ''
    ${lib.optionalString wrapRuntimeDeps ''
      wrapProgram $out/bin/Hyprland \
        --suffix PATH : ${lib.makeBinPath [binutils pciutils pkgconf]}
        --suffix PATH : ${
          lib.makeBinPath [
            binutils
            pciutils
            pkgconf
          ]
        }
    ''}
  '';

@@ -191,6 +196,6 @@ stdenv.mkDerivation (finalAttrs: {
      wozeparrot
    ];
    mainProgram = "Hyprland";
    platforms = lib.platforms.linux;
    platforms = lib.platforms.linux ++ lib.platforms.freebsd;
  };
})
Loading