3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/sway/wsr.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1,005 B
Nix
Raw Normal View History

2021-04-05 17:09:19 +01:00
{ lib, fetchFromGitHub, rustPlatform, libxcb, python3 }:
rustPlatform.buildRustPackage rec {
pname = "swaywsr";
2022-09-26 18:22:21 +01:00
version = "1.1.1";
2021-04-05 17:09:19 +01:00
src = fetchFromGitHub {
owner = "pedroscaff";
repo = pname;
2022-09-26 18:22:21 +01:00
rev = "0276b43824af5c40085248c1275feaa372c412a5";
sha256 = "sha256-KCMsn9uevmmjHkP4zwfaWSUI10JgT3M91iqmXI9Cv2Y=";
2021-04-05 17:09:19 +01:00
};
2022-09-26 18:22:21 +01:00
cargoSha256 = "sha256-j/9p28ezy8m5NXReOmG1oryWd+GcY/fNW6i7OrEvjSc=";
2021-04-05 17:09:19 +01:00
nativeBuildInputs = [ python3 ];
buildInputs = [ libxcb ];
# has not tests
doCheck = false;
meta = with lib; {
description = "Automatically change sway 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 composite of the app_id or WM_CLASS X11
window property for each window in a workspace.
'';
homepage = "https://github.com/pedroscaff/swaywsr";
license = licenses.mit;
maintainers = [ maintainers.sebbadk ];
};
}