mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
34 lines
967 B
Nix
34 lines
967 B
Nix
|
{ lib, fetchFromGitHub, rustPlatform, libxcb, python3 }:
|
||
|
|
||
|
rustPlatform.buildRustPackage rec {
|
||
|
pname = "i3wsr";
|
||
|
version = "1.3.1";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "roosta";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "1zpyncg29y8cv5nw0vgd69nywbj1ppxf6qfm4zc6zz0gk0vxy4pn";
|
||
|
};
|
||
|
|
||
|
cargoSha256 = "0snys419d32anf73jcvrq8h9kp1fq0maqcxz6ww04yg2jv6j47nc";
|
||
|
|
||
|
nativeBuildInputs = [ python3 ];
|
||
|
buildInputs = [ libxcb ];
|
||
|
|
||
|
# has not tests
|
||
|
doCheck = false;
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Automatically change i3 workspace names based on their contents";
|
||
|
longDescription = ''
|
||
|
Automatically sets the workspace names to match the windows on the workspace.
|
||
|
The chosen name for a workspace is a user-defined composite of the WM_CLASS X11
|
||
|
window property for each window in a workspace.
|
||
|
'';
|
||
|
homepage = "https://github.com/roosta/i3wsr";
|
||
|
license = licenses.mit;
|
||
|
maintainers = [ maintainers.sebbadk ];
|
||
|
};
|
||
|
}
|