Skip to content

Commit

Permalink
libmsquic: init at 2.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
SohamG committed Jan 6, 2025
1 parent 8007e1d commit 55ec1ee
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions pkgs/by-name/li/libmsquic/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
lttng-tools,
libatomic_ops,
perl,
coreutils,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "libmsquic";
version = "2.4.7";

src = fetchFromGitHub {
owner = "microsoft";
repo = "msquic";
tag = "v${finalAttrs.version}";
hash = "sha256-WveyZ9rMevLTc5C4cgMFcnj0O6Hd+HcfU8ccD6VBgyU=";
fetchSubmodules = true;
};

nativeBuildInputs = [
cmake
perl
];

buildInputs = [
lttng-tools
libatomic_ops
];

postUnpack = ''
for f in "$(find . -type f -name "*.pl")"; do
patchShebangs --build $f 2>&1 > /dev/null
done
for g in $(find . -type f -name "*" ); do
if test -f $g; then
sed -i "s|/usr/bin/env|${coreutils}/bin/env|g" $g
fi
done
'';

meta = {
description = "Cross-platform, C implementation of the IETF QUIC protocol, exposed to C, C++, C# and Rust";
homepage = "https://github.com/microsoft/msquic";
changelog = "https://github.com/microsoft/msquic/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ SohamG ];
};
})

0 comments on commit 55ec1ee

Please sign in to comment.