cryptominisat: fix static build

This commit is contained in:
Guillaume Girol 2024-04-03 12:00:00 +00:00
parent 67dc7cc993
commit 75e6297d10

View File

@ -17,8 +17,14 @@ stdenv.mkDerivation rec {
hash = "sha256-8oH9moMjQEWnQXKmKcqmXuXcYkEyvr4hwC1bC4l26mo=";
};
buildInputs = [ python3 boost ];
nativeBuildInputs = [ cmake ];
strictDeps = true;
buildInputs = [ boost ];
nativeBuildInputs = [ python3 cmake ];
# musl does not have sys/unistd.h
postPatch = ''
substituteInPlace src/picosat/picosat.c --replace-fail '<sys/unistd.h>' '<unistd.h>'
'';
meta = with lib; {
description = "An advanced SAT Solver";