flake: only apply the monotonic clocks patch to capnp<1.2.0

1.2.0 already includes it so building on unstable fails.

Change-Id: Iefa49203c371e5bab164c06b9da6f89a89ce7cfe
This commit is contained in:
K900
2025-10-18 12:04:06 +03:00
parent a55fe35dac
commit 6e2edbff93
+10 -6
View File
@@ -262,12 +262,16 @@
});
capnproto = prev.capnproto.overrideAttrs (old: {
patches = old.patches or [ ] ++ [
# backport of https://github.com/capnproto/capnproto/pull/1810
./misc/capnproto-promise-nodiscard.patch
# backport of https://github.com/capnproto/capnproto/pull/2296
./misc/capnproto-monotonic-clocks-are-a-lie.patch
];
patches =
old.patches or [ ]
++ [
# backport of https://github.com/capnproto/capnproto/pull/1810
./misc/capnproto-promise-nodiscard.patch
]
++ lib.optionals (lib.versionOlder old.version "1.2.0") [
# backport of https://github.com/capnproto/capnproto/pull/2296
./misc/capnproto-monotonic-clocks-are-a-lie.patch
];
});
};
in