From 72c2b8bc87bb0650b3dc545dd1846581bf33e63d Mon Sep 17 00:00:00 2001 From: Enric Morales Date: Sat, 20 Apr 2024 00:06:53 +0200 Subject: [PATCH] hyprland-activewindow: init at 1.0.1 fix(hyprland-activewindow): resolve review issues - avoid using repo = pname - removal of period at end of description - wrong homepage - change platform to platforms.linux, since Hyprland is specific to Linux. Co-authored-by: Donovan Glover Add donovanglover as co-maintainer --- .../hy/hyprland-activewindow/package.nix | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/by-name/hy/hyprland-activewindow/package.nix diff --git a/pkgs/by-name/hy/hyprland-activewindow/package.nix b/pkgs/by-name/hy/hyprland-activewindow/package.nix new file mode 100644 index 0000000000000..bc061447d60f3 --- /dev/null +++ b/pkgs/by-name/hy/hyprland-activewindow/package.nix @@ -0,0 +1,24 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "hyprland-activewindow"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "FieldOfClay"; + repo = "hyprland-activewindow"; + rev = "v${version}"; + hash = "sha256-8pzm8uIyvlz4nHbxtmbMblFIj38M2VsenaKzJ9di1Do="; + }; + + cargoHash = "sha256-wIF0qa1dyZlcsLPL2TflFQFPm4Pe9TWHe1F2L1YccZ8="; + + meta = with lib; { + description = "A multi-monitor-aware Hyprland workspace widget helper"; + homepage = "https://github.com/FieldofClay/hyprland-activewindow"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ kiike donovanglover ]; + mainProgram = "hyprland-activewindow"; + }; +}