alpha
Login
or
Join now
tombl.dev
/
distro
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add mimalloc
author
Thomas Stokes
date
1 year ago
(May 9, 2025, 5:32 PM +0800)
commit
425c39a5
425c39a53fa2199a2d8584d522514c2e8396046f
parent
0c7bb126
0c7bb126f2049f8ac58d52f672ea6476ebdd3ba2
+42
1 changed file
Expand all
Collapse all
Unified
Split
packages
mimalloc
package.nix
+42
packages/mimalloc/package.nix
Reviewed
···
1
1
+
{
2
2
+
fetch,
3
3
+
run,
4
4
+
config,
5
5
+
6
6
+
clang,
7
7
+
cmake,
8
8
+
lld,
9
9
+
ninja,
10
10
+
musl,
11
11
+
}:
12
12
+
13
13
+
run
14
14
+
{
15
15
+
name = "mimalloc";
16
16
+
version = "2.1.9";
17
17
+
src = fetch.github {
18
18
+
owner = "microsoft";
19
19
+
repo = "mimalloc";
20
20
+
rev = "refs/tags/v2.1.9";
21
21
+
hash = "sha256-NEi6uayLoMvnwYwxp2JT1GItdKteiCTw9N+ctltMb5I=";
22
22
+
};
23
23
+
path = [
24
24
+
clang
25
25
+
cmake
26
26
+
lld
27
27
+
ninja
28
28
+
];
29
29
+
}
30
30
+
''
31
31
+
cmake -B build -G Ninja \
32
32
+
-DCMAKE_C_COMPILER_TARGET=wasm32-unknown \
33
33
+
-DCMAKE_CXX_COMPILER_TARGET=wasm32-unknown \
34
34
+
-DCMAKE_C_COMPILER_WORKS=ON \
35
35
+
-DCMAKE_CXX_COMPILER_WORKS=ON \
36
36
+
-DCMAKE_C_FLAGS="-I${musl}/include" \
37
37
+
-DCMAKE_CXX_FLAGS="-I${musl}/include" \
38
38
+
-DCMAKE_INSTALL_PREFIX=$out \
39
39
+
-DCMAKE_BUILD_TYPE=${if config.debug then "Debug" else "Release"}
40
40
+
41
41
+
cmake --build build --target install -j$NIX_BUILD_CORES
42
42
+
''