Unverified Commit c3c1ef9c authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #289630 from IogaMaster/hypridle

hypridle: init at 0.1.0, hyprlang: 0.3.2 -> 0.4.0
parents a1eb6960 1a20d366
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, cmake
, wayland
, wayland-protocols
, hyprlang
, sdbus-cpp
, systemd
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "hypridle";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "hyprwm";
    repo = "hypridle";
    rev = "v${finalAttrs.version}";
    hash = "sha256-0x5R6v82nKBualYf+TxAduMsvG80EZAl7gofTIYtpf4=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    hyprlang
    sdbus-cpp
    systemd
    wayland
    wayland-protocols
  ];

  meta = {
    description = "Hyprland's idle daemon";
    homepage = "https://github.com/hyprwm/hypridle";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ iogamaster ];
    mainProgram = "hypridle";
    platforms = [ "aarch64-linux" "x86_64-linux" ];
  };
})
+4 −2
Original line number Diff line number Diff line
@@ -4,15 +4,16 @@
  fetchFromGitHub,
  cmake,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "hyprlang";
  version = "0.3.2";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "hyprwm";
    repo = "hyprlang";
    rev = "v${finalAttrs.version}";
    hash = "sha256-9TT3xk++LI5/SPYgjYX34xZ4ebR93c1uerIq+SE/ues=";
    hash = "sha256-nW3Zrhh9RJcMTvOcXAaKADnJM/g6tDf3121lJtTHnYo=";
  };

  nativeBuildInputs = [cmake];
@@ -26,5 +27,6 @@ stdenv.mkDerivation (finalAttrs: {
    description = "The official implementation library for the hypr config language";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ iogamaster fufexan ];
  };
})