-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into staging-next
- Loading branch information
Showing
59 changed files
with
499 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22495,6 +22495,12 @@ | |
githubId = 71843723; | ||
keys = [ { fingerprint = "EEFB CC3A C529 CFD1 943D A75C BDD5 7BE9 9D55 5965"; } ]; | ||
}; | ||
theoparis = { | ||
email = "[email protected]"; | ||
github = "theoparis"; | ||
githubId = 11761863; | ||
name = "Theo Paris"; | ||
}; | ||
thepuzzlemaker = { | ||
name = "ThePuzzlemaker"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
overrideSDK, | ||
cmakeMinimal, | ||
fetchFromGitHub, | ||
ninja, | ||
testers, | ||
aws-lc, | ||
useSharedLibraries ? !stdenv.hostPlatform.isStatic, | ||
}: | ||
let | ||
awsStdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv; | ||
in | ||
awsStdenv.mkDerivation (finalAttrs: { | ||
pname = "aws-lc"; | ||
version = "1.39.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "aws"; | ||
repo = "aws-lc"; | ||
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-LbhSnIjZWBtbU++puuZW2hgswO1lArrD5+uhBZNItNM="; | ||
}; | ||
|
||
outputs = [ | ||
"out" | ||
"bin" | ||
"dev" | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
cmakeMinimal | ||
ninja | ||
]; | ||
|
||
cmakeFlags = [ | ||
(lib.cmakeBool "BUILD_SHARED_LIBS" useSharedLibraries) | ||
"-GNinja" | ||
"-DDISABLE_GO=ON" | ||
"-DDISABLE_PERL=ON" | ||
"-DBUILD_TESTING=ON" | ||
]; | ||
|
||
doCheck = true; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
ninja run_minimal_tests | ||
runHook postCheck | ||
''; | ||
|
||
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://github.com/aws/aws-lc"; | ||
license = [ | ||
lib.licenses.asl20 # or | ||
lib.licenses.isc | ||
]; | ||
maintainers = [ lib.maintainers.theoparis ]; | ||
platforms = lib.platforms.unix; | ||
mainProgram = "bssl"; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Generated by ./update.sh - do not update manually! | ||
{ | ||
version = "1.16.1-1"; | ||
arm64-hash = "sha256-2pdrzOkF3Ni8Cjwrkevv8QmXioGFtNIHkUF/x+NoZIo="; | ||
x86_64-hash = "sha256-yAC1CZEOjip80fBbmor4bCOlEtyXMA1R3Hnxvmj56IQ="; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash --pure --keep GITHUB_TOKEN -p nix git curl cacert nix-prefetch-git jq | ||
|
||
set -euo pipefail | ||
|
||
cd $(readlink -e $(dirname "${BASH_SOURCE[0]}")) | ||
|
||
payload=$(curl https://api.github.com/repos/msojocs/bilibili-linux/releases/latest) | ||
version=$(jq -r .tag_name <<< "$payload" | cut -c 2-) | ||
amd64_url=https://github.com/msojocs/bilibili-linux/releases/download/v${version}/io.github.msojocs.bilibili_${version}_amd64.deb | ||
arm64_url=https://github.com/msojocs/bilibili-linux/releases/download/v${version}/io.github.msojocs.bilibili_${version}_arm64.deb | ||
|
||
amd64_hash=$(nix-prefetch-url $amd64_url) | ||
arm64_hash=$(nix-prefetch-url $arm64_url) | ||
|
||
# use friendlier hashes | ||
amd64_hash=$(nix hash convert --to sri --hash-algo sha256 "$amd64_hash") | ||
arm64_hash=$(nix hash convert --to sri --hash-algo sha256 "$arm64_hash") | ||
|
||
cat >sources.nix <<EOF | ||
# Generated by ./update.sh - do not update manually! | ||
{ | ||
version = "$version"; | ||
arm64-hash = "$arm64_hash"; | ||
x86_64-hash = "$amd64_hash"; | ||
} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.