about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2023-05-22 21:59:05 +0300
committerGitHub <noreply@github.com>2023-05-22 21:59:05 +0300
commit317c4cfe9c00ed7d825672e3ac6d5f63378cc8d2 (patch)
tree475b695bec54e39381180dccc89245fc5e988b48
parentf5373a830b2d2f15c24057a2bf4719c9eea7780d (diff)
parent399793ab53ffa5bc2e1a5e58fbfcaa146481e5a0 (diff)
Merge pull request #233258 from figsoda/critcmp
critcmp: init at 0.1.7
-rw-r--r--pkgs/development/tools/rust/critcmp/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/critcmp/default.nix b/pkgs/development/tools/rust/critcmp/default.nix
new file mode 100644
index 0000000000000..da387daeb950f
--- /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 d0ead3b16ada5..e43c939960998 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -16501,6 +16501,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;
   };