2021-09-18 10:52:07 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, xorgproto, motif, libX11, libXt, libXpm, bison
|
|
|
|
, flex, automake, autoconf, libtool
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alliance";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "unstable-2021-09-15";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.lip6.fr";
|
|
|
|
owner = "vlsi-eda";
|
|
|
|
repo = "alliance";
|
|
|
|
rev = "5e83c92d0307cce9d599f7099fb0023f81d26d65";
|
|
|
|
sha256 = "Vd3MTT4eKn4FMt0/F4fQUPcWq25kH0FpeGxQUOetKPY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
prePatch = "cd alliance/src";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ libtool automake autoconf flex ];
|
|
|
|
buildInputs = [ xorgproto motif libX11 libXt libXpm bison ];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
ALLIANCE_TOP = placeholder "out";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2021-09-18 10:52:07 +00:00
|
|
|
"--prefix=${placeholder "out"}" "--enable-alc-shared"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
# texlive for docs seems extreme
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace autostuff \
|
2021-09-18 10:52:07 +00:00
|
|
|
--replace "$newdirs documentation" "$newdirs"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
substituteInPlace sea/src/DEF_grammar_lex.l --replace "ifndef FLEX_BETA" \
|
|
|
|
"if (YY_FLEX_MAJOR_VERSION <= 2) && (YY_FLEX_MINOR_VERSION < 6)"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
./autostuff
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i "s|ALLIANCE_TOP|$out|" distrib/*.desktop
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp -p distrib/*.desktop $out/share/applications/
|
|
|
|
mkdir -p $out/icons/hicolor/48x48/apps/
|
|
|
|
cp -p distrib/*.png $out/icons/hicolor/48x48/apps/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "(deprecated) Complete set of free CAD tools and portable libraries for VLSI design";
|
|
|
|
homepage = "http://coriolis.lip6.fr/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; gpl2Plus;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ l-as ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|