Unverified Commit a42867b3 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

acl2: Fix (#487351)

parents 7c1480b5 b8282c86
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -8,18 +8,23 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "abc-verifier";
  version = "0.55";
  version = "0.61";

  src = fetchFromGitHub {
    owner = "yosyshq";
    repo = "abc";
    rev = "v${finalAttrs.version}";
    hash = "sha256-Ib6bZSPQmpI1UOsUG733TH6W6v+UnLyagdjUc8MreKw=";
    hash = "sha256-j/JmEJa29mT/XQmVL/adVbj4S+AAgpga1jbEinCN16w=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ readline ];

  cmakeFlags = [
    # This prevents CMake from trying to download googletest during the build
    (lib.cmakeBool "ABC_SKIP_TESTS" true)
  ];

  installPhase = ''
    runHook preInstall
    install -Dm755 'abc' "$out/bin/abc"
@@ -30,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
  passthru.rev = finalAttrs.src.rev;

  meta = {
    description = "Tool for squential logic synthesis and formal verification";
    description = "Tool for sequential logic synthesis and formal verification";
    homepage = "https://people.eecs.berkeley.edu/~alanmi/abc";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
+7 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  callPackage,
  fetchFromGitHub,
  fetchpatch,
  runCommandLocal,
  makeWrapper,
  replaceVars,
@@ -50,6 +51,12 @@ stdenv.mkDerivation rec {
  libipasir = callPackage ./libipasirglucose4 { };

  patches = [
    # The upstream fix for the input-files macro regression
    (fetchpatch {
      url = "https://github.com/acl2/acl2/commit/be39e7835f1c68008c17188d2f65eeaef61632fa.patch";
      sha256 = "sha256-pZ/r0vlyJz7ymYfrVtHDxsLdw0M/MJStBH42ZLO7Fs4=";
    })

    (replaceVars ./0001-path-changes-for-nix.patch {
      libipasir = "${libipasir}/lib/${libipasir.libname}";
      libssl = "${lib.getLib openssl}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}";