From 399793ab53ffa5bc2e1a5e58fbfcaa146481e5a0 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 21 May 2023 12:02:24 -0400 Subject: [PATCH] critcmp: init at 0.1.7 https://github.com/BurntSushi/critcmp --- .../tools/rust/critcmp/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/tools/rust/critcmp/default.nix diff --git a/pkgs/development/tools/rust/critcmp/default.nix b/pkgs/development/tools/rust/critcmp/default.nix new file mode 100644 index 000000000000..da387daeb950 --- /dev/null +++ b/pkgs/development/tools/rust/critcmp/default.nix @@ -0,0 +1,25 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "critcmp"; + version = "0.1.7"; + + src = fetchFromGitHub { + owner = "BurntSushi"; + repo = "critcmp"; + rev = version; + hash = "sha256-B9unlodAhdmRogHX7tqky320xpaUG2p8nRZS7uGOXGY="; + }; + + cargoHash = "sha256-Y1vfUOwCWAjMnNlm40XM9sQvooVtnGETTpIIsN/HTOU="; + + meta = with lib; { + description = "A command line tool for comparing benchmarks run by Criterion"; + homepage = "https://github.com/BurntSushi/critcmp"; + license = with licenses; [ mit unlicense ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2467c74d2213..7cf2a797b403 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16456,6 +16456,8 @@ with pkgs; crate2nix = callPackage ../development/tools/rust/crate2nix { }; + critcmp = callPackage ../development/tools/rust/critcmp { }; + convco = callPackage ../development/tools/convco { inherit (darwin.apple_sdk.frameworks) Security; };