working workspaces

This commit is contained in:
Henry Hiles 2026-04-19 16:02:50 -04:00
commit 30af165d02
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
54 changed files with 5065 additions and 158 deletions

View file

@ -2,8 +2,15 @@
pkgs.mkShell {
packages = with pkgs; [
cairo
pkg-config
libxkbcommon
gtk-layer-shell
cargo
rustfmt
flutter_rust_bridge_codegen
(pkgs.writeShellScriptBin "rustup" (builtins.readFile ./fake-rustup.sh))
(flutter.override {
extraPkgConfigPackages = [
gtk-layer-shell
@ -11,5 +18,10 @@ pkgs.mkShell {
})
];
LD_LIBRARY_PATH = "./build/linux/x64/debug/plugins/wayland_layer_shell";
RUST_BACKTRACE = 1;
LD_LIBRARY_PATH =
let
plugins = "./build/linux/x64/debug/plugins";
in
"${plugins}/wayland_layer_shell:${plugins}/rust_lib_flight";
}

35
linux/nix/fake-rustup.sh Normal file
View file

@ -0,0 +1,35 @@
#!/usr/bin/env bash
# Fake rustup for nix-managed Rust toolchains
case "$1" in
run)
if [[ "$2" == "stable" ]]; then
shift 2
if [[ $# -eq 0 ]]; then
echo "fake rustup: no command given" >&2
exit 1
fi
exec "$@"
exit 0
fi
;;
toolchain)
if [[ "$2" == "list" ]]; then
echo "stable (default)"
exit 0
fi
;;
target)
if [[ "$2" == "list" && "$3" == "--toolchain" && "$4" == "stable" && "$5" == "--installed" ]]; then
echo "x86_64-unknown-linux-gnu"
exit 0
fi
;;
esac
echo "fake rustup: the command:" >&2
echo " rustup $*" >&2
echo "…is not mocked yet" >&2
exit 1