Skip to content

Instantly share code, notes, and snippets.

@mvnetbiz
Created August 14, 2024 10:42
Show Gist options
  • Select an option

  • Save mvnetbiz/3cb28b078172de26a18cc53e994c7fb6 to your computer and use it in GitHub Desktop.

Select an option

Save mvnetbiz/3cb28b078172de26a18cc53e994c7fb6 to your computer and use it in GitHub Desktop.
shell.nix for cross linux kernel
let
pkgs = import <nixpkgs> {
crossSystem = (import <nixpkgs/lib>).systems.examples.aarch64-multiplatform;
};
in
pkgs.mkShell rec {
depsBuildBuild = [ pkgs.buildPackages.stdenv.cc ];
nativeBuildInputs = with pkgs.buildPackages; [
bison
bc
flex
lzop
pkg-config
ncurses
openssl
];
buildInputs = with pkgs; [ zlib ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment