From 5a39dd58c746f40055d8fa152ba3db7ef2e7b56e Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 29 Dec 2022 15:50:51 -0600 Subject: [PATCH] nimPackages.nimSHA2: init at unstable-2021-09-09 --- .../nim-packages/nimSHA2/default.nix | 18 ++++++++++++++++++ pkgs/top-level/nim-packages.nix | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/development/nim-packages/nimSHA2/default.nix diff --git a/pkgs/development/nim-packages/nimSHA2/default.nix b/pkgs/development/nim-packages/nimSHA2/default.nix new file mode 100644 index 000000000000..812b179b5d70 --- /dev/null +++ b/pkgs/development/nim-packages/nimSHA2/default.nix @@ -0,0 +1,18 @@ +{ lib, buildNimPackage, fetchFromGitHub }: + +buildNimPackage rec { + pname = "nimSHA2"; + version = "unstable-2021-09-09"; + src = fetchFromGitHub { + owner = "jangko"; + repo = pname; + rev = "b8f666069dff1ed0c5142dd1ca692f0e71434716"; + hash = "sha256-Wqb3mQ7638UOTze71mf6WMyGiw9qTwhbJiGGb+9OR2k="; + }; + doCheck = true; + meta = src.meta // { + description = "Secure Hash Algorithm 2"; + maintainers = with lib.maintainers; [ ehmry ]; + license = lib.licenses.mit; + }; +} diff --git a/pkgs/top-level/nim-packages.nix b/pkgs/top-level/nim-packages.nix index d4f780239298..decd0b569ac9 100644 --- a/pkgs/top-level/nim-packages.nix +++ b/pkgs/top-level/nim-packages.nix @@ -49,6 +49,8 @@ lib.makeScope newScope (self: nimbox = callPackage ../development/nim-packages/nimbox { }; + nimSHA2 = callPackage ../development/nim-packages/nimSHA2 { }; + nimsimd = callPackage ../development/nim-packages/nimsimd { }; noise = callPackage ../development/nim-packages/noise { };