bump circt version

This commit is contained in:
Felix Suchert 2024-07-30 13:16:34 +02:00
parent 1c2fca6c0a
commit 280e2422c1
Signed by: feliix42
GPG key ID: 24363525EA0E8A99
2 changed files with 19 additions and 17 deletions

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1709961763, "lastModified": 1722062969,
"narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=", "narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34", "rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -9,9 +9,9 @@
let let
# git revision to use (for version and git pull # git revision to use (for version and git pull
#llvmRevision = "llvmorg-17-init"; #llvmRevision = "llvmorg-18-init";
llvmRevision = "08ed557714eed7f5cde9d1c5606f58280683884a"; llvmRevision = "2ee2b6aa7a3d9ba6ba13f6881b25e26d7d12c823";
circtRevision = "39b4f01a665e62b8770ea66b31abe7c1b8a9bfb2"; circtRevision = "464f177ddcd3eb737fe8a592d20a24b15f25aef6";
# to work with older version of flakes # to work with older version of flakes
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101"; lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
@ -36,14 +36,15 @@
# A Nixpkgs overlay. # A Nixpkgs overlay.
overlays.default = final: prev: { overlays.default = final: prev: {
mlir = with final; llvmPackages_17.stdenv.mkDerivation rec { mlir = with final; llvmPackages_18.stdenv.mkDerivation rec {
name = "mlir-${version}"; name = "mlir-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "llvm"; owner = "llvm";
repo = "llvm-project"; repo = "llvm-project";
rev = llvmRevision; rev = llvmRevision;
sha256 = "sha256-9fNCqUDWI3Rjizkps5vgLy0ZtMgFeFmyh1yCWLj8NVc="; # lib.fakeSha256; sha256 = "sha256-piXv4YUf8q5Lf36my0bHtVkSJTrc+NvyZpLEwLPfV7U="; # lib.fakeSha256;
#sha256 = lib.fakeSha256;
}; };
sourceRoot = "source/llvm"; sourceRoot = "source/llvm";
@ -54,9 +55,9 @@
cmake cmake
ncurses ncurses
zlib zlib
llvmPackages_17.llvm llvmPackages_18.llvm
llvmPackages_17.clang llvmPackages_18.clang
llvmPackages_17.bintools llvmPackages_18.bintools
]; ];
buildInputs = [ libxml2 ]; buildInputs = [ libxml2 ];
@ -87,7 +88,7 @@
"-DCMAKE_C_COMPILER=clang" "-DCMAKE_C_COMPILER=clang"
"-DCMAKE_CXX_COMPILER=clang++" "-DCMAKE_CXX_COMPILER=clang++"
"-DLLVM_ENABLE_LLD=ON" "-DLLVM_ENABLE_LLD=ON"
#"-DLLVM_USE_LINKER=${llvmPackages_17.bintools}/bin/lld" #"-DLLVM_USE_LINKER=${llvmPackages_18.bintools}/bin/lld"
# CCache can drastically speed up further rebuilds, try adding: # CCache can drastically speed up further rebuilds, try adding:
#"-DLLVM_CCACHE_BUILD=ON" #"-DLLVM_CCACHE_BUILD=ON"
# libxml2 needs to be disabled because the LLVM build system ignores its .la # libxml2 needs to be disabled because the LLVM build system ignores its .la
@ -102,14 +103,15 @@
# ''; # '';
}; };
circt = with final; llvmPackages_17.stdenv.mkDerivation rec { circt = with final; llvmPackages_18.stdenv.mkDerivation rec {
name = "circt-${version}"; name = "circt-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "llvm"; owner = "llvm";
repo = "circt"; repo = "circt";
rev = circtRevision; rev = circtRevision;
sha256 = "sha256-/4UrcwVyQnOwJMpRn0tMfJi/zm5rmrnv9IBE7/2rOY8="; # lib.fakeSha256; sha256 = "sha256-gl/TGZe30GAGnVrZl+iSBLTujddz7Qs6jUOq2gZ4xVI="; # lib.fakeSha256;
#sha256 = lib.fakeSha256;
}; };
sourceRoot = "source/"; sourceRoot = "source/";
@ -120,9 +122,9 @@
cmake cmake
#ncurses #ncurses
#zlib #zlib
#llvmPackages_17.llvm #llvmPackages_18.llvm
llvmPackages_17.clang llvmPackages_18.clang
llvmPackages_17.bintools llvmPackages_18.bintools
mlir mlir
lit lit
]; ];