Skip to content

Commit

Permalink
maintainers: add theoparis
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Paris <[email protected]>
  • Loading branch information
theoparis committed Oct 9, 2024
1 parent e55a24e commit 426740c
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20412,6 +20412,12 @@
githubId = 71843723;
keys = [ { fingerprint = "EEFB CC3A C529 CFD1 943D A75C BDD5 7BE9 9D55 5965"; } ];
};
theoparis = {
email = "[email protected]";
github = "theparis";
githubId = 11761863;
name = "Theo Paris";
};
thepuzzlemaker = {
name = "ThePuzzlemaker";
email = "[email protected]";
Expand Down
80 changes: 80 additions & 0 deletions pkgs/by-name/aw/aws-lc/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
lib,
stdenv,
cmakeMinimal,
fetchFromGitHub,
ninja,
testers,
aws-lc,
...
}:

stdenv.mkDerivation (finalAttrs: {
pname = "aws-lc";
version = "1.33.0";

src = fetchFromGitHub {
owner = "aws";
repo = "aws-lc";
rev = "v${finalAttrs.version}";
hash = "sha256-YTvKpTaZnmYlEiKS/W5FlmiEMY7MDxgplXIENxRjI3Q=";
};

outputs = [
"out"
"bin"
"dev"
];

nativeBuildInputs = [
cmakeMinimal
ninja
];

cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.targetPlatform.isStatic))
"-GNinja"
"-DDISABLE_GO=ON"
];

env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isGNU [
# Needed with GCC 12 but breaks on darwin (with clang)
"-Wno-error=stringop-overflow"
]
);

postFixup = ''
for f in $out/lib/crypto/cmake/*/crypto-targets.cmake; do
substituteInPlace "$f" \
--replace-fail 'INTERFACE_INCLUDE_DIRECTORIES "''${_IMPORT_PREFIX}/include"' 'INTERFACE_INCLUDE_DIRECTORIES ""'
done
'';

passthru.tests = {
version = testers.testVersion {
package = aws-lc;
command = "bssl version";
};
pkg-config = testers.hasPkgConfigModules {
package = aws-lc;
moduleNames = [
"libcrypto"
"libssl"
"openssl"
];
};
};

meta = {
description = "General-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers";
homepage = "https:/aws/aws-lc";
license = [
lib.licenses.asl20 # or
lib.licenses.isc
];
maintainers = [ lib.maintainers.theoparis ];
platforms = lib.platforms.all;
mainProgram = "bssl";
};
})

0 comments on commit 426740c

Please sign in to comment.