diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/sw/swayws/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/sw/swayws/package.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/sw/swayws/package.nix b/nixpkgs/pkgs/by-name/sw/swayws/package.nix new file mode 100644 index 000000000000..999581153ac9 --- /dev/null +++ b/nixpkgs/pkgs/by-name/sw/swayws/package.nix @@ -0,0 +1,29 @@ +{ lib, fetchFromGitLab, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "swayws"; + version = "1.2.0"; + + src = fetchFromGitLab { + owner = "w0lff"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-f0kXy7/31imgHHqKPmW9K+QrLqroaPaXwlJkzOoezRU="; + }; + + cargoSha256 = "sha256-VYT6wV59fraAoJgR/i6GlO8s7LUoehGtxPAggEL1eLo="; + # Required patch until upstream fixes https://gitlab.com/w0lff/swayws/-/issues/1 + cargoPatches = [ + ./ws-update-Cargo-lock.patch + ]; + + # swayws does not have any tests + doCheck = false; + + meta = with lib; { + description = "A sway workspace tool which allows easy moving of workspaces to and from outputs"; + homepage = "https://gitlab.com/w0lff/swayws"; + license = licenses.mit; + maintainers = [ maintainers.atila ]; + }; +} |