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