Skip to content

Commit f08bf22

Browse files
László Vaskóvlaci
authored andcommitted
nix: fix LIEF build using Cmake 3.26
C standard selection is changed[^1] which broke LIEF because of some arcane reason. Let's just skip building examples... [^1]: https://cmake.org/cmake/help/latest/release/3.26.html#other-changes
1 parent 2e9b576 commit f08bf22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

overlay.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@ inputs: final: prev:
1515
unblob = pyFinal.callPackage ./nix/unblob { };
1616
});
1717
};
18+
lief = prev.lief.overrideAttrs (super: {
19+
postPatch = ''
20+
substituteInPlace setup.py \
21+
--replace 'cmake_args = ["-DLIEF_FORCE_API_EXPORTS=ON", "-DLIEF_PYTHON_API=on"]' 'cmake_args = ["-DLIEF_FORCE_API_EXPORTS=ON", "-DLIEF_PYTHON_API=on", "-DLIEF_EXAMPLES=off"]'
22+
'';
23+
});
1824
python3Packages = final.python3.pkgs;
1925
}

0 commit comments

Comments
 (0)