-
Notifications
You must be signed in to change notification settings - Fork 597
/
overlay.nix
38 lines (38 loc) · 1.14 KB
/
overlay.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
final: prev:
{
mill = (prev.mill.overrideAttrs (oldAttrs: rec {
version = "0.11.6";
src = prev.fetchurl {
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly";
hash = "sha256-vGhjnOKvR2RdgFx3WsM217SO9gcKZknPaf7LKo3SJPU=";
};
})).override {
jre = final.openjdk21;
};
# This script can be used for override circt for debuging.
# circt = prev.circt.overrideAttrs (old: rec {
# version = "nightly";
# src = final.fetchFromGitHub {
# owner = "llvm";
# repo = "circt";
# rev = "57372957e8365b34ca469299b8c864d830e836a1";
# sha256 = "sha256-gExhWkhVhIpTKRCfF26pZnrcrf//ASQJDxEKbYc570s=";
# fetchSubmodules = true;
# };
# preConfigure = ''
# find ./test -name '*.mlir' -exec sed -i 's|/usr/bin/env|${final.coreutils}/bin/env|g' {} \;
# substituteInPlace cmake/modules/GenVersionFile.cmake --replace "unknown git version" "nightly"
# '';
# });
circt-all = final.symlinkJoin {
name = "circt-all";
paths = with final; [
circt
circt.dev
circt.lib
circt.llvm
circt.llvm.dev
circt.llvm.lib
];
};
}