Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
851 B
Nix
51 lines
851 B
Nix
{
|
|
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;
|
|
};
|
|
})
|