diff options
author | Donovan Glover <donovan@dglover.co> | 2023-06-24 11:03:08 -0400 |
---|---|---|
committer | Donovan Glover <donovan@dglover.co> | 2023-09-09 20:06:52 -0400 |
commit | 37716c97b69d795290ee8e06a08c298b91793493 (patch) | |
tree | f081f8201335e9f934972e218dfbbf66938a643c /pkgs/by-name/hy | |
parent | 3801ff38052fde06b3226d523cd77b3d5ff5f084 (diff) |
hyprkeys: init at 1.0.3
Diffstat (limited to 'pkgs/by-name/hy')
-rw-r--r-- | pkgs/by-name/hy/hyprkeys/package.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/hy/hyprkeys/package.nix b/pkgs/by-name/hy/hyprkeys/package.nix new file mode 100644 index 0000000000000..e4ae721ed5e14 --- /dev/null +++ b/pkgs/by-name/hy/hyprkeys/package.nix @@ -0,0 +1,44 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "hyprkeys"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "hyprland-community"; + repo = "Hyprkeys"; + rev = "v${version}"; + hash = "sha256-u2NTSth9gminIEcbxgGm/2HHyzuwf/YPNQV4VzR14Kk="; + }; + + ldflags = [ + "-s" + "-w" + "-X main.version=v${version}" + ]; + + nativeBuildInputs = [ + installShellFiles + ]; + + vendorHash = "sha256-JFvC9V0xS8SZSdLsOtpyTrFzXjYAOaPQaJHdcnJzK3s="; + + postInstall = '' + installShellCompletion --cmd hyprkeys \ + --bash <($out/bin/hyprkeys completion bash) \ + --fish <($out/bin/hyprkeys completion fish) \ + --zsh <($out/bin/hyprkeys completion zsh) + ''; + + meta = with lib; { + description = "A simple, scriptable keybind retrieval utility for Hyprland"; + homepage = "https://github.com/hyprland-community/Hyprkeys"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ NotAShelf donovanglover ]; + mainProgram = "hyprkeys"; + }; +} |