Skip to content

Commit

Permalink
aws-lc: init at 1.36.1
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 426740c commit a872272
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pkgs/by-name/aw/aws-lc/package.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
{
lib,
stdenv,
overrideSDK,
cmakeMinimal,
fetchFromGitHub,
fetchpatch,
ninja,
testers,
aws-lc,
...
}:

stdenv.mkDerivation (finalAttrs: {
let
awsStdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
in
awsStdenv.mkDerivation (finalAttrs: {
pname = "aws-lc";
version = "1.33.0";
version = "1.36.1";

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

patches = [
# See https:/NixOS/nixpkgs/issues/144170
(fetchpatch {
url = "https:/aws/aws-lc/compare/main...tinted-software:aws-lc:main.patch";
sha256 = "sha256-rXUG1bVYDnjwQC5+Q5E0W02eVlP1PJkt2IWcvgWnXng=";
})
];

outputs = [
"out"
"bin"
Expand All @@ -35,6 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.targetPlatform.isStatic))
"-GNinja"
"-DDISABLE_GO=ON"
"-DDISABLE_PERL=ON"
];

env.NIX_CFLAGS_COMPILE = toString (
Expand Down

0 comments on commit a872272

Please sign in to comment.