From f27451f92ee0085bd7fb352ec54f47cb6b8d0df4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Mar 2026 13:01:06 +0100 Subject: [PATCH] pqcscan: init at 0.8.0 Post-Quantum Cryptography Scanner https://github.com/anvilsecure/pqcscan --- pkgs/by-name/pq/pqcscan/package.nix | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/pq/pqcscan/package.nix diff --git a/pkgs/by-name/pq/pqcscan/package.nix b/pkgs/by-name/pq/pqcscan/package.nix new file mode 100644 index 000000000000..ed8c754c378b --- /dev/null +++ b/pkgs/by-name/pq/pqcscan/package.nix @@ -0,0 +1,33 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "pqcscan"; + version = "0.8.0"; + + src = fetchFromGitHub { + owner = "anvilsecure"; + repo = "pqcscan"; + tag = finalAttrs.version; + hash = "sha256-+IwUESqmxvZu53n5ORNoYVD8JiSwAjD9AudnsXfIKvc="; + }; + + cargoHash = "sha256-ZZm1I4fsw4PDCVZYuyhy4fC5ocfz1Snrv9vMltF26x8="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + meta = { + description = "Post-Quantum Cryptography Scanner"; + homepage = "https://github.com/anvilsecure/pqcscan"; + changelog = "https://github.com/anvilsecure/pqcscan/releases/tag/${finalAttrs.src.rev}"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "pqcscan"; + }; +})