Unverified Commit a95b29f4 authored by Paul Haerle's avatar Paul Haerle Committed by GitHub
Browse files

alliance: Switch to GitHub repository, update to 2025 (#405665)

parents 7887414b c443bc66
Loading
Loading
Loading
Loading
+15 −18
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitLab,
  fetchFromGitHub,
  xorgproto,
  motif,
  libX11,
@@ -16,17 +16,18 @@

stdenv.mkDerivation {
  pname = "alliance";
  version = "unstable-2022-01-13";
  version = "unstable-2025-02-24";

  src = fetchFromGitLab {
    domain = "gitlab.lip6.fr";
    owner = "vlsi-eda";
  src =
    let
      src = fetchFromGitHub {
        owner = "lip6";
        repo = "alliance";
    rev = "ebece102e15c110fc79f1da50524c68fd9523f0c";
    hash = "sha256-NGtE3ZmN9LrgXG4NIKrp7dFRVzrKMoudlPUtYYKrZjY=";
        rev = "a8502d32df0a4ad1bd29ab784c4332319669ecd2";
        hash = "sha256-b2uaYZEzHMB3qCMRVANNnjTxr6OYb1Unswxjq5knYzM=";
      };

  prePatch = "cd alliance/src";
    in
    "${src}/alliance/src";

  nativeBuildInputs = [
    libtool
@@ -43,17 +44,13 @@ stdenv.mkDerivation {
    bison
  ];

  # Disable parallel build, errors:
  #  ./pat_decl_y.y:736:5: error: expected '=', ...
  enableParallelBuilding = false;

  ALLIANCE_TOP = placeholder "out";

  configureFlags = [
    "--prefix=${placeholder "out"}"
    "--enable-alc-shared"
  ];

  # To avoid compiler error in LoadDataBase.c:366:27
  env.NIX_CFLAGS_COMPILE = "-Wno-incompatible-pointer-types";

  postPatch = ''
    # texlive for docs seems extreme
    substituteInPlace autostuff \