nixpkgs/pkgs/applications/window-managers/i3/cycle-focus.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
768 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage {
pname = "i3-cycle-focus";
version = "unstable-2021-09-27";
src = fetchFromGitHub {
owner = "TheDoctor314";
repo = "i3-cycle-focus";
rev = "d94f22e4b8502de4ed846a211fa0c8418b3e3e89";
hash = "sha256-caZKvxOqoYgPs+Zjltj8K0/ospjkLnA4kh0rsTjeU3Y=";
};
cargoHash = "sha256-9glaxThm/ovgvUWCyrycS/Oe5t8iN5P38fF5vO5awQE=";
meta = with lib; {
description = "A simple tool to cyclically switch between the windows on the active workspace";
mainProgram = "i3-cycle-focus";
homepage = "https://github.com/TheDoctor314/i3-cycle-focus";
license = licenses.unlicense;
maintainers = with maintainers; [ GaetanLepage ];
platforms = platforms.linux;
};
}