Skip to content

Commit

Permalink
Update docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
afilini committed May 24, 2024
1 parent 1a8feb8 commit e47efc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions docker/embedded-dev.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{ pkgs, packages, getRust }:
{ pkgs, packages, devShells, getRust }:

let
qemuOnlyArm = packages.smallQemu;
shell = pkgs.mkShell {
buildInputs = with pkgs; [ cmake pkg-config qemuOnlyArm (getRust { withEmbedded = true; }) ];

CC_thumbv7em_none_eabihf = "${pkgs.gcc-arm-embedded}/bin/arm-none-eabi-gcc";
};
in
pkgs.dockerTools.buildNixShellImage {
name = "portal-dev-environment";
tag = "latest";
homeDirectory = "/app";
drv = shell;
drv = devShells.embedded;
}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
};

packages.docker.emulatorImage = pkgs.callPackage ./docker/emulator.nix { inherit pkgs packages; };
packages.docker.devEnvironment = pkgs.callPackage ./docker/embedded-dev.nix { inherit pkgs packages getRust; };
packages.docker.devEnvironment = pkgs.callPackage ./docker/embedded-dev.nix { inherit pkgs packages devShells getRust; };
}
);
}

0 comments on commit e47efc9

Please sign in to comment.