summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-11-02 15:30:30 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-11-02 15:42:33 -0500
commita4234645fe2445fe503413b159a842dbb280a777 (patch)
tree6eeea5fdd42ae2beb5aaceb813a4fb008175a7ab
parent94a2cdebaa0f25d52a08e3b2d3bdcdabd62e16ba (diff)
downloadnixpkgs-a4234645fe2445fe503413b159a842dbb280a777.tar
nixpkgs-a4234645fe2445fe503413b159a842dbb280a777.tar.gz
nixpkgs-a4234645fe2445fe503413b159a842dbb280a777.tar.bz2
nixpkgs-a4234645fe2445fe503413b159a842dbb280a777.tar.lz
nixpkgs-a4234645fe2445fe503413b159a842dbb280a777.tar.xz
nixpkgs-a4234645fe2445fe503413b159a842dbb280a777.tar.zst
nixpkgs-a4234645fe2445fe503413b159a842dbb280a777.zip
betaflight: don’t use nano
not in newlib
-rw-r--r--pkgs/development/misc/stm32/betaflight/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/misc/stm32/betaflight/default.nix b/pkgs/development/misc/stm32/betaflight/default.nix
index 21230464e74..fbe48803f2d 100644
--- a/pkgs/development/misc/stm32/betaflight/default.nix
+++ b/pkgs/development/misc/stm32/betaflight/default.nix
@@ -32,6 +32,9 @@ in stdenv.mkDerivation rec {
   postPatch = ''
     sed -ri "s/REVISION.*=.*git log.*/REVISION = ${builtins.substring 0 10 src.rev}/" Makefile # Simulate abbrev'd rev.
     sed -ri "s/binary hex/hex/" Makefile # No need for anything besides .hex
+
+    substitutateInPlace Makefile \
+      --replace "--specs=nano.specs" ""
   '';
 
   enableParallelBuilding = true;