diff options
Diffstat (limited to 'makefu/5pkgs/broken/arduino-chroot/default.nix')
-rw-r--r-- | makefu/5pkgs/broken/arduino-chroot/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefu/5pkgs/broken/arduino-chroot/default.nix b/makefu/5pkgs/broken/arduino-chroot/default.nix new file mode 100644 index 000000000..c08153dcf --- /dev/null +++ b/makefu/5pkgs/broken/arduino-chroot/default.nix @@ -0,0 +1,20 @@ +{stdenv, pkgs, lib, ... }: + +stdenv.mkDerivation rec { + name = "xtensa-g++"; + buildInputs = [ pkgs.makeWrapper ]; + + libPath = lib.makeLibraryPath [ pkgs.gcc.lib ]; + src = ./xtensa-lx106-elf-g++.tar.gz; + + phases = [ "unpackPhase" "installPhase" ]; + installPhase = '' + set -x + mkdir -p $out/bin + cp ./xtensa-lx106-elf-g++ $out/bin/xtensa-lx106-elf-g++ + patchelf \ + --set-interpreter "$(< "$NIX_CC/nix-support/dynamic-linker")" \ + --set-rpath "${libPath}" \ + $out/bin/xtensa-lx106-elf-g++ + ''; +} |