Skip to content

Instantly share code, notes, and snippets.

@lf-

lf-/shell.nix Secret

Created November 16, 2020 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lf-/142c9fc6586be731abc62d394c7c3e35 to your computer and use it in GitHub Desktop.
Save lf-/142c9fc6586be731abc62d394c7c3e35 to your computer and use it in GitHub Desktop.
let pkgsNative = import <nixpkgs> { };
pkgs = import <nixpkgs> {
crossSystem = {
config = "arm-unknown-linux-gnueabi";
};
config = {
allowUnsupportedSystem = true;
};
};
qemu-user = pkgsNative.qemu.override {
smartcardSupport = false;
spiceSupport = false;
openGLSupport = false;
virglSupport = false;
vncSupport = false;
gtkSupport = false;
sdlSupport = false;
pulseSupport = false;
smbdSupport = false;
seccompSupport = false;
hostCpuTargets = ["arm-linux-user"];
};
in
{
shell = pkgs.mkShell {
nativeBuildInputs = [ qemu-user ];
# nativeBuildInputs = [ binutils gcc ];
};
inherit qemu-user;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment