2022-08-23 19:27:22 +00:00
|
|
|
{ lib, fetchFromGitLab, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayws";
|
2023-03-23 19:06:56 +00:00
|
|
|
version = "1.2.0";
|
2022-08-23 19:27:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "w0lff";
|
|
|
|
repo = pname;
|
2023-03-23 19:06:56 +00:00
|
|
|
rev = "v${version}";
|
2024-07-13 13:27:47 +00:00
|
|
|
hash = "sha256-f0kXy7/31imgHHqKPmW9K+QrLqroaPaXwlJkzOoezRU=";
|
2022-08-23 19:27:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-02 09:04:59 +00:00
|
|
|
cargoHash = "sha256-VYT6wV59fraAoJgR/i6GlO8s7LUoehGtxPAggEL1eLo=";
|
2023-03-23 19:06:56 +00:00
|
|
|
# Required patch until upstream fixes https://gitlab.com/w0lff/swayws/-/issues/1
|
|
|
|
cargoPatches = [
|
|
|
|
./ws-update-Cargo-lock.patch
|
|
|
|
];
|
2022-08-23 19:27:22 +00:00
|
|
|
|
|
|
|
# swayws does not have any tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sway workspace tool which allows easy moving of workspaces to and from outputs";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "swayws";
|
2022-08-23 19:27:22 +00:00
|
|
|
homepage = "https://gitlab.com/w0lff/swayws";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.atila ];
|
|
|
|
};
|
|
|
|
}
|