From 2af434a506c821f3d7ae505476306856adc3efee Mon Sep 17 00:00:00 2001 From: tphanir Date: Mon, 1 Sep 2025 14:50:59 +0530 Subject: [PATCH 1/2] maintainers: add tphanir --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 72f86e2996c6..f937db204422 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -26186,6 +26186,11 @@ githubId = 47905926; name = "toyboot4e"; }; + tphanir = { + github = "tphanir"; + name = "phani"; + githubId = 125972587; + }; tpw_rules = { name = "Thomas Watson"; email = "twatson52@icloud.com"; From 87c2d6a4f68915480b2bf9ff5c7d776cc885ad26 Mon Sep 17 00:00:00 2001 From: tphanir Date: Mon, 1 Sep 2025 13:26:20 +0530 Subject: [PATCH 2/2] pbc: init at 1.0.0 --- pkgs/by-name/pb/pbc/package.nix | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/pb/pbc/package.nix diff --git a/pkgs/by-name/pb/pbc/package.nix b/pkgs/by-name/pb/pbc/package.nix new file mode 100644 index 000000000000..5486ce69ac63 --- /dev/null +++ b/pkgs/by-name/pb/pbc/package.nix @@ -0,0 +1,50 @@ +{ + lib, + stdenv, + fetchurl, + gmp, + flex, + bison, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "pbc"; + version = "1.0.0"; + + src = fetchurl { + url = "https://crypto.stanford.edu/pbc/files/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; + hash = "sha256-GCdaNnKDB3uv419EMgBJnjsZxKN1SVPaKhsvDWtZItw="; + }; + + outputs = [ + "out" + "dev" + ]; + + buildInputs = [ + gmp + ]; + nativeBuildInputs = [ + bison + flex + ]; + + strictDeps = true; + + env = { + LEX = "flex"; + LEXLIB = "-lfl"; + ac_cv_lib_fl_yywrap = "yes"; + }; + + meta = { + description = "Pairing-based cryptography library by Stanford"; + homepage = "https://crypto.stanford.edu/pbc/"; + license = with lib.licenses; [ + lgpl3Only + asl20 + ]; + maintainers = with lib.maintainers; [ tphanir ]; + platforms = lib.platforms.unix; + }; +})