Skip to content

Commit

Permalink
Try to make targets/nvidia-jetson-orin more explicit to debug incompa…
Browse files Browse the repository at this point in the history
…tibility with new jetpack-nixos api

Signed-off-by: juliuskoskela <[email protected]>
  • Loading branch information
juliuskoskela committed Oct 24, 2024
1 parent d0777dc commit 7892041
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 177 deletions.
21 changes: 10 additions & 11 deletions lib/mk-flash-script/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@
nixpkgs,
hostConfiguration,
jetpack-nixos,
flash-tools-system,
}:
let
flashSystem = "x86_64-linux";
# Import pkgs for x86_64-linux system
pkgs = import nixpkgs {
system = flashSystem;
system = "x86_64-linux";
crossSystem = {
config = "aarch64-unknown-linux-gnu";
};
overlays = [
jetpack-nixos.overlays.default
(import "${jetpack-nixos}/overlay-with-config.nix" hostConfiguration)
(import "${jetpack-nixos}/overlay-with-config.nix" hostConfiguration.config)
];
};

inherit (pkgs.nvidia-jetpack) flash-tools;

flashScript = pkgs.nvidia-jetpack.mkFlashScript flash-tools { };
# Generate the flash script derivation
flashScriptDrv = pkgs.nvidia-jetpack.mkFlashScript { };
in
nixpkgs.legacyPackages.${flash-tools-system}.writeShellApplication {
name = "flash-ghaf";
text = flashScript;
}
flashScriptDrv

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
{
imports = [ ./sdimage.nix ];

formatAttr = "sdImage";
# formatAttr = "sdImage";
}
Loading

0 comments on commit 7892041

Please sign in to comment.