Skip to content

Commit b39ee26

Browse files
committed
aw-server-rust: fix failing build due to removed unstable feature
Rust compiler plugins have been entirely removed after having been deprecated for years [1]. This caused the build of `aw-server-rust` to break because its `aw-server` crate still contained the respective crate attribute to enable the feature. This attribute has already been removed upstream along with other no longer used unstable feature opt-ins [2]. This change pulls in the respective commit with `fetchpatch` and filters it down to only the changes in `aw-server/src/lib.rs`, which fixes the build for now. The patch should be removable with the next release (0.12.3). [1]: rust-lang/rust#116412 [2]: https://github.com/ActivityWatch/aw-server-rust/commit/e1cd761d2f0a9309eb851b59732c2567a7ae2d3a.patch
1 parent 5465c7e commit b39ee26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/applications/office/activitywatch/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{ lib
22
, fetchFromGitHub
3+
, fetchpatch
34
, rustPlatform
45
, makeWrapper
56
, pkg-config
@@ -164,6 +165,14 @@ rec {
164165
src = ./override-version.patch;
165166
version = sources.rev;
166167
})
168+
169+
# Can be removed with release 0.12.3
170+
(fetchpatch {
171+
name = "remove-unused-unstable-features.patch";
172+
url = "https://github.com/ActivityWatch/aw-server-rust/commit/e1cd761d2f0a9309eb851b59732c2567a7ae2d3a.patch";
173+
hash = "sha256-wP+3XZDkr148XY5b8RV3obuLczAFBE3FhaYPqnmmGcU=";
174+
includes = [ "aw-server/src/lib.rs" ];
175+
})
167176
];
168177

169178
nativeBuildInputs = [

0 commit comments

Comments
 (0)