forked from M-Labs/thermostat
cleanup + build gdb on hydra
This commit is contained in:
parent
cc35c81e55
commit
7d98fd416c
@ -8,11 +8,11 @@ let
|
||||
in
|
||||
with pkgs;
|
||||
let
|
||||
rustPlatform = recurseIntoAttrs (callPackage (import ./nix/rustPlatform.nix) {
|
||||
rustPlatform = recurseIntoAttrs (callPackage ./nix/rustPlatform.nix {
|
||||
inherit rustManifest;
|
||||
});
|
||||
adc2tcp = callPackage (import ./nix/adc2tcp.nix) { inherit rustPlatform; };
|
||||
openocd = callPackage (import ./nix/openocd.nix) {};
|
||||
adc2tcp = callPackage ./nix/adc2tcp.nix { inherit rustPlatform; };
|
||||
openocd = callPackage ./nix/openocd.nix {};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "adc2tcp-dist";
|
||||
|
@ -5,11 +5,13 @@
|
||||
|
||||
with pkgs;
|
||||
let
|
||||
adc2tcp = callPackage (import ./default.nix) {
|
||||
gdb = callPackage ./nix/gdb.nix;
|
||||
adc2tcp = callPackage ./default.nix {
|
||||
inherit rustManifest;
|
||||
mozillaOverlay = import <mozillaOverlay>;
|
||||
};
|
||||
in
|
||||
{
|
||||
build = lib.hydraJob adc2tcp;
|
||||
gdb = lib.hydraJob gdb;
|
||||
}
|
||||
|
15
shell.nix
15
shell.nix
@ -12,18 +12,9 @@ let
|
||||
in
|
||||
with pkgs;
|
||||
let
|
||||
rustPlatform = callPackage (import ./nix/rustPlatform.nix) {};
|
||||
openocd = callPackage (import ./nix/openocd.nix) {};
|
||||
# TODO: gdb 8.2.1 from NixOS >= 19.XX is multiarch by default.
|
||||
# remove the following as `gdb` is already in scope
|
||||
gdb = pkgs.gdb.override {
|
||||
stdenv = stdenv.override {
|
||||
targetPlatform = {
|
||||
config = "arm-none-eabihf";
|
||||
libc = "newlib";
|
||||
};
|
||||
};
|
||||
};
|
||||
rustPlatform = callPackage ./nix/rustPlatform.nix {};
|
||||
openocd = callPackage ./nix/openocd.nix {};
|
||||
gdb = callPackage ./nix/gdb.nix {};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "adc2tcp-env";
|
||||
|
Loading…
Reference in New Issue
Block a user