Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active October 10, 2016 16:00
Show Gist options
  • Save cleverca22/9f35e7ae8f5030bfec332efd178eb1ef to your computer and use it in GitHub Desktop.
Save cleverca22/9f35e7ae8f5030bfec332efd178eb1ef to your computer and use it in GitHub Desktop.
let
crossSystem = {
config = "arm-none-eabi";
float = "soft";
libc = "glibc";
};
pkgs = import <nixpkgs> {
inherit crossSystem;
config.packageOverrides = pkgs: with pkgs; {
stdenvCross = lowPrio (makeStdenvCross defaultStdenv crossSystem binutilsCross gccCrossStageStatic);
};
};
stdenvBare = pkgs.overrideCC pkgs.stdenv pkgs.gccCrossStageStatic;
in {
testprj = pkgs.stdenv.mkDerivation {
name = "testprj";
src = ./.;
nativeBuildInputs = [ pkgs.cmake ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment