flare-signal-nixified: enable primary device registration

This commit is contained in:
2023-12-13 07:17:17 +00:00
parent 354a4e523b
commit c22119f69b

View File

@@ -127,12 +127,15 @@ let
"--cross-file=${crossFile}"
];
# patch so meson will invoke our `crate2nix_cmd.sh` instead of cargo
postPatch = ''
# patch so meson will invoke our `crate2nix_cmd.sh` instead of cargo
substituteInPlace src/meson.build \
--replace 'cargo_options,' "" \
--replace "cargo, 'build'," "'bash', 'crate2nix_cmd.sh'," \
--replace "'target' / rust_target" "'target/bin'"
# enable the "Primary Device" button (beta)
substituteInPlace data/resources/ui/setup_window.blp \
--replace 'sensitive: false;' ""
'';
postConfigure = ''
# copied from <pkgs/development/tools/build-managers/meson/setup-hook.sh>