Skip to content

Commit 86d3b3c

Browse files
authored
hal-hardware-analyzer: fix darwin build (NixOS#394802)
2 parents 9c39e90 + 5b311ec commit 86d3b3c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ stdenv.mkDerivation rec {
4747
hash = "sha256-bjbW4pr04pP0TCuSdzPcV8h6LbLWMvdGSf61RL9Ju6E=";
4848
})
4949
./4.4.1-newer-spdlog-fmt-compat.patch
50+
./resynthesis-fix-narrowing-conversion.patch
5051
];
5152

5253
# make sure bundled dependencies don't get in the way - install also otherwise
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/plugins/resynthesis/src/resynthesis.cpp b/plugins/resynthesis/src/resynthesis.cpp
2+
index 7a7e404114f..f2889667af8 100644
3+
--- a/plugins/resynthesis/src/resynthesis.cpp
4+
+++ b/plugins/resynthesis/src/resynthesis.cpp
5+
@@ -1058,7 +1058,7 @@ namespace hal
6+
// delete the created directory and the contained files
7+
std::filesystem::remove_all(base_path);
8+
9+
- return OK(subgraph.size());
10+
+ return OK(static_cast<unsigned int>(subgraph.size()));
11+
}
12+
13+
Result<u32> resynthesize_subgraph_of_type(Netlist* nl, const std::vector<const GateType*>& gate_types, GateLibrary* target_gl)

0 commit comments

Comments
 (0)