1 { lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-12eVZqW4+ZCDS0oszJI5rTREJY77km/y57LNDFJAwkk=";
14 cargoHash = "sha256-75D38+QjEzj7J4CC30iMeuDXwcW4QT9YWgYyCILSv+g=";
16 buildInputs = lib.optional stdenv.isDarwin libiconv;
19 # requires embedded toolchains
20 "--skip should_link_example_firmware::case_1_normal"
21 "--skip should_link_example_firmware::case_2_custom_linkerscript"
22 "--skip should_verify_memory_layout"
26 description = "Adds zero-cost stack overflow protection to your embedded programs";
27 mainProgram = "flip-link";
28 homepage = "https://github.com/knurling-rs/flip-link";
29 changelog = "https://github.com/knurling-rs/flip-link/blob/v${version}/CHANGELOG.md";
30 license = with licenses; [ asl20 /* or */ mit ];
31 maintainers = with maintainers; [ FlorianFranzen newam ];