fix: mark broken for ci

This commit is contained in:
xinyangli 2024-02-04 12:25:22 +08:00
parent d0007c987b
commit 83ec364ca3
No known key found for this signature in database
5 changed files with 3221 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, pkgsCross
, gnumake
, isa ? "riscv32e"
, platform ? "nemu"
}:
let
isa_mapping = {
riscv32e = "riscv64";
};
in stdenvNoCC.mkDerivation rec {
pname = "abstract-machine";
version = "2023-08-29";
src = fetchFromGitHub {
owner = "NJU-ProjectN";
repo = "abstract-machine";
rev = "3348db971fd860be5cb28e21c18f9d0e65d0c96a";
hash = "sha256-jZVivawwHXw5WCrHm5vOb9nDBqK6BFVer8Zec0/oZvc=";
};
nativeBuildInputs = [
gnumake
pkgsCross.${isa_mapping.${isa}}.gcc
];
SRCS = src;
AM_HOME = src;
ARCH = "${isa}-${platform}";
MAKECMDGOALS = "image";
meta = with lib; {
description = "A minimal, modularized, and machine-independent hardware abstraction layer";
homepage = "https://github.com/NJU-ProjectN/abstract-machine.git";
license = licenses.mit;
maintainers = with maintainers; [ ];
broken = true;
};
}

77
pkgs/ieda/default.nix Normal file
View file

@ -0,0 +1,77 @@
{ stdenvNoCC
, lib
, cargo
, fetchgit
, pkgsStatic
, gcc11
, cmake
, ninja
, flex
, bison
, zlib
, tcl
, gflags
, glog
, boost180
, eigen
, yaml-cpp
, libunwind
, metis
, gmp
, python3
}:
stdenvNoCC.mkDerivation rec {
name = "iEDA";
version = "0.3";
# src = fetchFromGitHub {
# owner = "OSCC-Project";
# repo = "iEDA";
# rev = "a7df35fb4667cc099ab76d10da113f09060ac0ea";
# hash = "sha256-ShMZ20EoFM34JUjmBh2enHTarM0qQbYb5A5eoC9D/VA=";
# };
src = fetchgit {
url = "https://gitee.com/oscc-project/iEDA.git";
name = "iEDA";
rev = "4de9f6c2dc602852fc1b668a866ffee0d96e2dcb";
hash = "sha256-BBVLVa2vuKdhz0Eb5aRrlkAMXlLcrTKWW63G3L3XgyE=";
};
patches = [ ./fixtcl.patch ./fix_header.patch ];
nativeBuildInputs = [
gcc11
cargo
cmake
ninja
flex
bison
zlib
];
buildInputs = [
tcl
pkgsStatic.gtest
gflags
glog
boost180
eigen
yaml-cpp
libunwind
metis
gmp
python3
];
cmakeFlags = [
"-DBUILD_STATIC_LIB=off"
];
CXXFLAGS = "-fpermissive";
meta = with lib; {
description = "An open-source EDA infracstrucutre and tools from netlist to GDS for ASIC design.";
homepage = "https://gitee.com/oscc-project/iEDA";
license = licenses.mulan-psl2;
maintainers = with maintainers; [ ];
broken = true;
};
}

View file

@ -0,0 +1,12 @@
diff --git a/src/operation/iCTS/api/CTSAPI.hh b/src/operation/iCTS/api/CTSAPI.hh
index 86ff3565..bef443a0 100644
--- a/src/operation/iCTS/api/CTSAPI.hh
+++ b/src/operation/iCTS/api/CTSAPI.hh
@@ -27,6 +27,7 @@
#include <string_view>
#include <type_traits>
#include <vector>
+#include <optional>
#include "../../../database/interaction/ids.hpp"

13
pkgs/ieda/fixtcl.patch Normal file
View file

@ -0,0 +1,13 @@
diff --git a/src/utility/tcl/ScriptEngine.hh b/src/utility/tcl/ScriptEngine.hh
index 522e9878..cdee8af9 100644
--- a/src/utility/tcl/ScriptEngine.hh
+++ b/src/utility/tcl/ScriptEngine.hh
@@ -24,7 +24,7 @@
#pragma once
-#include <tcl8.6/tcl.h>
+#include <tcl.h>
#include <memory>
#include <mutex>

File diff suppressed because it is too large Load diff