-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoard.nix
58 lines (50 loc) · 1.29 KB
/
hoard.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
55
56
57
58
{
fetchFromGitHub,
lib,
stdenv,
}:
let
heap-layers = fetchFromGitHub {
owner = "emeryberger";
repo = "Heap-Layers";
rev = "a2048eae91b531dc5d72be7a194e0b333c06bd4c";
hash = "sha256-vl3z30CBX7hav/DM/UE0EQ9lLxZF48tMJrYMXuSulyA=";
};
in
stdenv.mkDerivation {
strictDeps = true;
pname = "hoard";
version = "3.13-unstable-2024-08-02";
src = fetchFromGitHub {
owner = "emeryberger";
repo = "Hoard";
rev = "f021bdb810332c9c9f5a11ae5404aaa38fe129c0";
hash = "sha256-Ui134VZyb5wUg20yXmPzTCle8aCevLVFyE0SCWSuM94=";
};
sourceRoot = "source/src";
# Don't download dependencies.
postPatch = ''
substituteInPlace ./GNUmakefile \
--replace-fail \
'git clone https://github.com/emeryberger/Heap-Layers' \
"" \
--replace-fail \
'PREFIX ?= /usr/lib' \
"PREFIX ?= $out/lib"
ln -s "${heap-layers}" ./Heap-Layers
'';
preInstall = ''
mkdir -p "$out/lib"
'';
makeFlags = [
"Linux-gcc-x86_64"
];
doCheck = false;
meta = {
description = "A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac";
homepage = "https://github.com/emeryberger/Hoard";
license = lib.licenses.asl20;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ connorbaker ];
};
}