Merge pull request #209926 from wegank/satallax-darwin
satallax: add darwin support
This commit is contained in:
commit
a3e5e2db7e
|
@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
|
|||
./fix-declaration-gcc9.patch
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
patch -p1 -i ${../avy/minisat-fenv.patch} -d minisat
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
mkdir fake-tools
|
||||
echo "echo 'Nix-build-host.localdomain'" > fake-tools/hostname
|
||||
|
@ -41,7 +45,8 @@ stdenv.mkDerivation rec {
|
|||
)
|
||||
'';
|
||||
|
||||
postBuild = "echo testing; ! (bash ./test | grep ERROR)";
|
||||
# error: invalid suffix on literal; C++11 requires a space between literal and identifier
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-reserved-user-defined-literal";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/share/doc/satallax" "$out/bin" "$out/lib" "$out/lib/satallax"
|
||||
|
@ -59,11 +64,22 @@ stdenv.mkDerivation rec {
|
|||
cp -r coq* "$out/lib/satallax/"
|
||||
'';
|
||||
|
||||
doCheck = stdenv.isLinux;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
if bash ./test | grep ERROR; then
|
||||
echo "Tests failed"
|
||||
exit 1
|
||||
fi
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Automated theorem prover for higher-order logic";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.raskin ];
|
||||
platforms = lib.platforms.linux;
|
||||
platforms = lib.platforms.unix;
|
||||
downloadPage = "http://www.ps.uni-saarland.de/~cebrown/satallax/downloads.php";
|
||||
homepage = "http://www.ps.uni-saarland.de/~cebrown/satallax/index.php";
|
||||
};
|
||||
|
|
|
@ -36303,9 +36303,7 @@ with pkgs;
|
|||
|
||||
proverif = callPackage ../applications/science/logic/proverif { };
|
||||
|
||||
satallax = callPackage ../applications/science/logic/satallax {
|
||||
ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml;
|
||||
};
|
||||
satallax = callPackage ../applications/science/logic/satallax { };
|
||||
|
||||
saw-tools = callPackage ../applications/science/logic/saw-tools {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue