mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ 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 = "Simple, scriptable keybind retrieval utility for Hyprland";
|
|
homepage = "https://github.com/hyprland-community/Hyprkeys";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ NotAShelf donovanglover ];
|
|
mainProgram = "hyprkeys";
|
|
};
|
|
}
|