From 34ad94bd360edbf48e9994c51c62ee8e09741369 Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Thu, 29 Apr 2021 20:07:02 +0200 Subject: [PATCH] flip-link: init at 0.1.3 --- pkgs/development/tools/flip-link/default.nix | 22 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/flip-link/default.nix diff --git a/pkgs/development/tools/flip-link/default.nix b/pkgs/development/tools/flip-link/default.nix new file mode 100644 index 000000000000..36467848c4f7 --- /dev/null +++ b/pkgs/development/tools/flip-link/default.nix @@ -0,0 +1,22 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "flip-link"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "knurling-rs"; + repo = pname; + rev = "v${version}"; + sha256 = "0x6l5aps0aryf3iqiyk969zrq77bm95jvm6f0f5vqqqizxjd3yfl"; + }; + + cargoSha256 = "13rgpbwaz2b928rg15lbaszzjymph54pwingxpszp5paihx4iayr"; + + meta = with lib; { + description = "Adds zero-cost stack overflow protection to your embedded programs"; + homepage = "https://github.com/knurling-rs/flip-link"; + license = with licenses; [ asl20 mit ]; + maintainers = [ maintainers.FlorianFranzen ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2da323ce7088..7f03b5327e76 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4569,6 +4569,8 @@ in flawfinder = callPackage ../development/tools/flawfinder { }; + flip-link = callPackage ../development/tools/flip-link { }; + flips = callPackage ../tools/compression/flips { }; fmbt = callPackage ../development/tools/fmbt {