commit a3f68da76b90401fbd9a4a99fe6067e559c8b5be
parent fb627c0089ad2134f20072b1ba531d981cba59bf
Author: Jared Tobin <jared@jtobin.io>
Date: Mon, 19 Oct 2026 14:21:55 +0400
flake: the plugin on Linux alone
The plugin is built against QEMU's user mode, which nixpkgs offers
on Linux alone, and is only ever loaded there. Exporting it for every
system made the flake's check fail to evaluate on Darwin; it is now a
package of Linux systems only.
Diffstat:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/flake.nix b/flake.nix
@@ -21,9 +21,15 @@
linux = pkgs.stdenv.hostPlatform.isLinux;
in
{
- packages.default = v.vestigia;
- packages.include = v.include;
- packages.plugin = v.plugin;
+ packages = {
+ default = v.vestigia;
+ include = v.include;
+ }
+ # the plugin and the QEMU it loads run Linux guests' user
+ # mode, which exists on Linux alone
+ // lib.optionalAttrs linux {
+ plugin = v.plugin;
+ };
lib = {
inherit (v) traceOf diffOf valgrindDev;