cleanup + build gdb on hydra

This commit is contained in:
Sebastien Bourdeauducq 2019-03-22 20:34:32 +08:00
parent cc35c81e55
commit 7d98fd416c
3 changed files with 9 additions and 16 deletions

View File

@ -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";

View File

@ -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;
}

View File

@ -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";