python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / flip-link / default.nix
blobd42e282289afd93577c65f7192e821f396b71fd2
1 { lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
3 rustPlatform.buildRustPackage rec {
4   pname = "flip-link";
5   version = "0.1.6";
7   src = fetchFromGitHub {
8     owner = "knurling-rs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-Sf2HlAfPlg8Er2g17AnRmUkvRhTw5AVPuL2B92hFvpA=";
12   };
14   cargoSha256 = "sha256-2VgsO2hUIvSPNQhR13+bGTxXa6xZXcK0amfiWv2EIxk=";
16   buildInputs = lib.optional stdenv.isDarwin libiconv;
18   checkFlags = [
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"
23   ];
25   meta = with lib; {
26     description = "Adds zero-cost stack overflow protection to your embedded programs";
27     homepage = "https://github.com/knurling-rs/flip-link";
28     changelog = "https://github.com/knurling-rs/flip-link/blob/v${version}/CHANGELOG.md";
29     license = with licenses; [ asl20 /* or */ mit ];
30     maintainers = with maintainers; [ FlorianFranzen newam ];
31   };