Unverified Commit b7eddb7b authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

hyprviz: init at 0.6.1 (#442448)

parents 773f355b b2bc7405
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -26043,6 +26043,12 @@
    github = "tilpner";
    githubId = 4322055;
  };
  timasoft = {
    name = "Timofey Klester";
    email = "tima.klester@yandex.ru";
    github = "timasoft";
    githubId = 74288993;
  };
  timbertson = {
    email = "tim@gfxmonk.net";
    github = "timbertson";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  gtk4,
  glib,
  pango,
  pkg-config,
  wrapGAppsHook4,
  hyprland,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "hyprviz";
  version = "0.6.1";

  src = fetchFromGitHub {
    owner = "timasoft";
    repo = "hyprviz";
    tag = "v${finalAttrs.version}";
    hash = "sha256-xiAP5Xy30IokRcR25ObXLeM7qKjVXgEv9fQZA2KDxOA=";
  };

  cargoHash = "sha256-FW0FGoJ/OPlujgB8OXsO+Y6J1piA7FywsuDm8MU4KfI=";

  nativeBuildInputs = [
    pkg-config
    wrapGAppsHook4
  ];

  buildInputs = [
    gtk4
    glib
    pango
  ];

  postInstall = ''
    install -Dm644 hyprviz.desktop -t $out/share/applications
  '';

  meta = {
    description = "GUI for configuring Hyprland";
    homepage = "https://github.com/timasoft/hyprviz";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ timasoft ];
    mainProgram = "hyprviz";
    platforms = hyprland.meta.platforms;
    changelog = "https://github.com/timasoft/hyprviz/releases/tag/v${finalAttrs.version}";
  };
})