summary refs log tree commit diff
path: root/pkgs/development/misc/qmk_firmware
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-12-02 17:47:53 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2018-12-02 19:49:36 -0600
commit3b32c920d569c1653d2a3ee84b0aa1f24bf34a85 (patch)
tree3807ef2a3aad09a0bc5a052b7b9e428d56e1f1a1 /pkgs/development/misc/qmk_firmware
parent808f05808b40c9092a54cfab7799c13cdb8a5db5 (diff)
downloadnixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.tar
nixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.tar.gz
nixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.tar.bz2
nixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.tar.lz
nixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.tar.xz
nixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.tar.zst
nixpkgs-3b32c920d569c1653d2a3ee84b0aa1f24bf34a85.zip
systems/parse.nix: support eabihf
eabihf is an abi that can be used with ARM architectures that support
the “hard float”. It should probably only be used with ARM32 when you
are absolutely sure your binaries will run on ARM systems with a FPU.

Also, add an example "armhf-embedded" to match the preexisting
arm-embedded system. qmk_firmware needs hard float in a few places, so
add them here to get that to work.

Fixes #51184
Diffstat (limited to 'pkgs/development/misc/qmk_firmware')
-rw-r--r--pkgs/development/misc/qmk_firmware/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/development/misc/qmk_firmware/default.nix b/pkgs/development/misc/qmk_firmware/default.nix
index 0a7b4fd9d9a..0ec8664dac9 100644
--- a/pkgs/development/misc/qmk_firmware/default.nix
+++ b/pkgs/development/misc/qmk_firmware/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchFromGitHub
 , avrgcc, avrbinutils
-, gcc-arm-embedded, binutils-arm-embedded
+, gcc-arm-embedded, gcc-armhf-embedded
 , teensy-loader-cli, dfu-programmer, dfu-util }:
 
 let version = "0.6.144";
@@ -14,12 +14,23 @@ in stdenv.mkDerivation {
     sha256 = "0m71f9w32ksqjkrwhqwhr74q5v3pr38bihjyb9ks0k5id0inhrjn";
     fetchSubmodules = true;
   };
+  postPatch = ''
+    substituteInPlace tmk_core/arm_atsam.mk \
+      --replace arm-none-eabi arm-none-eabihf
+    rm keyboards/handwired/frenchdev/rules.mk keyboards/dk60/rules.mk
+  '';
   buildFlags = "all:default";
+  doCheck = true;
+  checkTarget = "test:all";
+  installPhase = ''
+    mkdir $out
+  '';
   NIX_CFLAGS_COMPILE = "-Wno-error";
   nativeBuildInputs = [
     avrgcc
     avrbinutils
     gcc-arm-embedded
+    gcc-armhf-embedded
     teensy-loader-cli
     dfu-programmer
     dfu-util