Skip to content

Commit

Permalink
fix: nix flake for x86_64 arch (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
invertedEcho authored Nov 23, 2024
1 parent 8aef480 commit 255dbab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachSystem ["aarch64-linux"] (
flake-utils.lib.eachSystem ["x86_64-linux"] (
system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShell = with pkgs;
mkShell rec {
mkShell {
FLUTTER_ROOT = flutter;
DART_ROOT = "${flutter}/bin/cache/dart-sdk";
QT_QPA_PLATFORM = "wayland;xcb"; # emulator related: try using wayland, otherwise fall back to X
Expand All @@ -44,7 +44,7 @@
# TODO: feels super hacky, i feel like flutter is messing up somewhere here
# also probably breaks stuff when doing a release build
# we could provide shell scripts for building release/debug for nix users that set the correct dir
export CMAKE_INSTALL_PREFIX=$PWD/frontend/build/linux/arm64/debug/bundle
export CMAKE_INSTALL_PREFIX=$PWD/frontend/build/linux/x64/debug/bundle
'';
};
}
Expand Down

0 comments on commit 255dbab

Please sign in to comment.