Skip to content

Commit

Permalink
init flake derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Nov 21, 2024
1 parent 53dc4c2 commit 61642ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@
};
};

armv7-linux = {
rustTarget = "armv7-unknown-linux-musleabi";
runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-arm ${himalaya}";
mkPackage = { pkgs, ... }: package:
let
inherit (pkgs.pkgsCross.raspberryPi) stdenv;
cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
in
package // {
TARGET_CC = cc;
CARGO_BUILD_RUSTFLAGS = package.CARGO_BUILD_RUSTFLAGS ++ [ "-Clinker=${cc}" ];
};
};

x86_64-windows = {
rustTarget = "x86_64-pc-windows-gnu";
runner = { pkgs, himalaya }:
Expand Down

0 comments on commit 61642ae

Please sign in to comment.