Skip to content

Commit

Permalink
Update flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasguyer authored Nov 6, 2024
1 parent 07be112 commit 8ac2390
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
src = ./.;
cmakeFlags = ["-DCSPOT_TARGET_CLI=ON"];
nativeBuildInputs = cspot-pkgs;
# Sync submodule to make sure it points to the correct repository
preBuild = ''
git submodule sync
git submodule update --init --recursive
'';
# Patch nanopb shebangs to refer to provided python
postPatch = ''
patchShebangs cspot/bell/external/nanopb/generator/*
Expand All @@ -63,6 +68,12 @@
devShells = {
default = pkgs.mkShell {
packages = cspot-pkgs;

# Ensure submodule is updated in devShell as well
shellHook = ''
git submodule sync
git submodule update --init --recursive
'';
};
};
in {
Expand Down

0 comments on commit 8ac2390

Please sign in to comment.