summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-10-12 15:21:26 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-10-30 13:31:45 -0500
commitaa4707fc3449192b961bfd2dfc16b9042df0d7f3 (patch)
tree02678d0bdefb86a692e8ac435484b7ec03ebf6c2 /pkgs/applications/misc
parent501d072b5ff48d55b97027a38626cb252c4d026c (diff)
downloadnixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.tar
nixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.tar.gz
nixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.tar.bz2
nixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.tar.lz
nixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.tar.xz
nixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.tar.zst
nixlib-aa4707fc3449192b961bfd2dfc16b9042df0d7f3.zip
treewide: use gnu toolchain for avr/arm-embedded
These packages should in theory work with our GCC toolchains, but
there are some definite breakages that need to be tracked down.
Comparing output of these to old gcc-arm-embedded is important.

Affected packages include:

- axolooti
- avrdudess
- opentx
- microscheme
- betaflight
- inav
- blackmagic
- simavr
- gnuk
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/avrdudess/default.nix4
-rw-r--r--pkgs/applications/misc/opentx/default.nix8
2 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/applications/misc/avrdudess/default.nix b/pkgs/applications/misc/avrdudess/default.nix
index c803eb37ad6f..1144d5152847 100644
--- a/pkgs/applications/misc/avrdudess/default.nix
+++ b/pkgs/applications/misc/avrdudess/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, unzip, mono, avrbinutils, avrgcc, avrdude, gtk2, xdg_utils }:
+{ stdenv, fetchurl, unzip, mono, avrdude, gtk2, xdg_utils }:
 
 stdenv.mkDerivation rec {
   name = "avrdudess-2.2.20140102";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
     export LD_LIBRARY_PATH="${stdenv.lib.makeLibraryPath [gtk2 mono]}"
     # We need PATH from user env for xdg-open to find its tools, which
     # typically depend on the currently running desktop environment.
-    export PATH="${stdenv.lib.makeBinPath [ avrgcc avrbinutils avrdude xdg_utils ]}:\$PATH"
+    export PATH="${stdenv.lib.makeBinPath [ avrdude xdg_utils ]}:\$PATH"
 
     # avrdudess must have its resource files in its current working directory
     cd $out/avrdudess && exec ${mono}/bin/mono "$out/avrdudess/avrdudess.exe" "\$@"
diff --git a/pkgs/applications/misc/opentx/default.nix b/pkgs/applications/misc/opentx/default.nix
index 8a941a719f29..0aecc43d1e53 100644
--- a/pkgs/applications/misc/opentx/default.nix
+++ b/pkgs/applications/misc/opentx/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchFromGitHub
-, cmake, gcc-arm-embedded, python
+, cmake, gcc-arm-embedded, binutils-arm-embedded, python
 , qt5, SDL, gmock
 , dfu-util, avrdude
 }:
@@ -21,10 +21,12 @@ in stdenv.mkDerivation {
 
   enableParallelBuilding = true;
 
-  nativeBuildInputs = [ cmake ];
+  nativeBuildInputs = [
+    cmake
+    gcc-arm-embedded binutils-arm-embedded
+  ];
 
   buildInputs = with qt5; [
-    gcc-arm-embedded
     python python.pkgs.pyqt4
     qtbase qtmultimedia qttranslations
     SDL gmock