diff --git a/pkgs/applications/window-managers/sway/ws-update-Cargo-lock.patch b/pkgs/applications/window-managers/sway/ws-update-Cargo-lock.patch new file mode 100644 index 000000000000..e1d7614e8bfa --- /dev/null +++ b/pkgs/applications/window-managers/sway/ws-update-Cargo-lock.patch @@ -0,0 +1,13 @@ +diff --git a/Cargo.lock b/Cargo.lock +index f01f824..e00d079 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -328,7 +328,7 @@ dependencies = [ + + [[package]] + name = "swayws" +-version = "1.1.1" ++version = "1.2.0" + dependencies = [ + "clap", + "env_logger", diff --git a/pkgs/applications/window-managers/sway/ws.nix b/pkgs/applications/window-managers/sway/ws.nix index babb252d7452..999581153ac9 100644 --- a/pkgs/applications/window-managers/sway/ws.nix +++ b/pkgs/applications/window-managers/sway/ws.nix @@ -2,16 +2,20 @@ rustPlatform.buildRustPackage rec { pname = "swayws"; - version = "unstable-2022-03-10"; + version = "1.2.0"; src = fetchFromGitLab { owner = "w0lff"; repo = pname; - rev = "514f3c664439cf2c11bb9096c7e1d3b8c0b898a2"; - sha256 = "sha256-vUnbn79v08riYLMBI8BxeBPpe/pHOWlraG7QAaohw3s="; + rev = "v${version}"; + sha256 = "sha256-f0kXy7/31imgHHqKPmW9K+QrLqroaPaXwlJkzOoezRU="; }; - cargoSha256 = "sha256-PvKpcTewajvbzUHPssBahWVcAQB3V/aMmOJ/wA0Nrv4="; + 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;