Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,28 @@
};
}))
(verilator.overrideAttrs (finalAttrs: previousAttrs: {
version = "5.044";
version = "5.046";
VERILATOR_SRC_VERSION = "v${finalAttrs.version}";
src = fetchFromGitHub {
owner = "verilator";
repo = "verilator";
rev = "v${finalAttrs.version}";
hash = "sha256-z3jYNzhnZ+OocDAbmsRBWHNNPXLLvExKK1TLDi9JzPQ=";
hash = "sha256-dfZzbQrw/14dFvWnkmCDElwsGm6GdFstNAURujvEIb8=";
};
# drop patch https://github.com/NixOS/nixpkgs/commit/06be23d66287c004cb8ef933a9ff6589276ab104
# since it's already included in 5.044
patches = [];
# and add patch https://github.com/verilator/verilator/commit/bb5a9dc247b3fc07a4e465601243a8c3655eeaff to use jemalloc
patches = [
(fetchpatch {
name = "Support-jemalloc-as-the-default-allocator-on-Linux.patch";
url = "https://github.com/verilator/verilator/commit/bb5a9dc247b3fc07a4e465601243a8c3655eeaff.patch";
hash = "sha256-5rVXPItwsP1Ok9rrLUCyLNlZB0S8UXsR74IxZXua1Y0=";
})
];
# use jemalloc by default
buildInputs = previousAttrs.buildInputs ++ [
jemalloc
];
doCheck = false;
}))
gsim.packages.${system}.default
Expand Down
Loading