forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.nix
54 lines (47 loc) · 1.15 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
lib,
stdenv,
fetchFromGitHub,
cmake,
lttng-tools,
libatomic_ops,
perl,
coreutils,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libmsquic";
version = "2.4.8";
src = fetchFromGitHub {
owner = "microsoft";
repo = "msquic";
tag = "v${finalAttrs.version}";
hash = "sha256-cgLrTcoa77XuVsMBvOWw9oKoNtD1ihJM553YpZ+GzQQ=";
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 ];
};
})