Last active
October 10, 2016 16:00
-
-
Save cleverca22/9f35e7ae8f5030bfec332efd178eb1ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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