Advertisement
Guest User

Untitled

a guest
Sep 30th, 2023
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. {
  2. description = "Flake for building Prover9/Mace4";
  3.  
  4. inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  5.  
  6. outputs = {self, nixpkgs} : {
  7. packages.aarch64-darwin.default =
  8. with import nixpkgs { system = "aarch64-darwin"; };
  9. stdenv.mkDerivation {
  10. pname = "prover9";
  11. version = "2009-11a";
  12.  
  13. src = fetchurl {
  14. url = "https://www.cs.unm.edu/~mccune/prover9/download/LADR-2009-11A.tar.gz";
  15. sha256 = "1l2i3d3h5z7nnbzilb6z92r0rbx0kh6yaxn2c5qhn3000xcfsay3";
  16. };
  17.  
  18. hardeningDisable = [ "format" ];
  19.  
  20. postPatch = ''
  21. RM=$(type -tp rm)
  22. MV=$(type -tp mv)
  23. CP=$(type -tp cp)
  24. for f in Makefile */Makefile; do
  25. substituteInPlace $f --replace "/bin/rm" "$RM" \
  26. --replace "/bin/mv" "$MV" \
  27. --replace "/bin/cp" "$CP";
  28. done
  29. '';
  30.  
  31. buildFlags = [ "all" ];
  32.  
  33. checkPhase = "make test1";
  34.  
  35. installPhase = ''
  36. mkdir -p $out/bin
  37. cp bin/* $out/bin
  38. '';
  39.  
  40. meta = with lib; {
  41. homepage = "https://www.cs.unm.edu/~mccune/mace4/";
  42. license = licenses.gpl2Only;
  43. description = "Automated theorem prover for first-order and equational logic";
  44. longDescription = ''
  45. Prover9 is a resolution/paramodulation automated theorem prover
  46. for first-order and equational logic. Prover9 is a successor of
  47. the Otter Prover. This is the LADR command-line version.
  48. '';
  49. platforms = platforms.darwin;
  50. maintainers = with maintainers; [ ];
  51. };
  52. };
  53. };
  54. }
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement