nixpkgs/pkgs/applications/science/electronics/alliance/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.7 KiB
Nix
Raw Normal View History

2021-09-02 19:59:49 +00:00
{ lib, stdenv, fetchFromGitLab, xorgproto, motif, libX11, libXt, libXpm, bison
, flex, automake, autoconf, libtool
2016-07-30 14:35:51 +00:00
}:
2016-07-30 14:35:51 +00:00
stdenv.mkDerivation rec {
pname = "alliance";
version = "unstable-2022-01-13";
2021-09-02 19:59:49 +00:00
src = fetchFromGitLab {
domain = "gitlab.lip6.fr";
owner = "vlsi-eda";
repo = "alliance";
rev = "ebece102e15c110fc79f1da50524c68fd9523f0c";
hash = "sha256-NGtE3ZmN9LrgXG4NIKrp7dFRVzrKMoudlPUtYYKrZjY=";
};
2021-09-02 19:59:49 +00:00
prePatch = "cd alliance/src";
2016-07-30 14:35:51 +00:00
nativeBuildInputs = [ libtool automake autoconf flex ];
buildInputs = [ xorgproto motif libX11 libXt libXpm bison ];
2016-07-30 14:35:51 +00:00
2022-01-29 10:35:18 +00:00
# Disable parallel build, errors:
# ./pat_decl_y.y:736:5: error: expected '=', ...
enableParallelBuilding = false;
2021-09-02 19:59:49 +00:00
ALLIANCE_TOP = placeholder "out";
2016-07-30 14:35:51 +00:00
configureFlags = [
2021-09-02 19:59:49 +00:00
"--prefix=${placeholder "out"}" "--enable-alc-shared"
2016-07-30 14:35:51 +00:00
];
2021-09-02 19:59:49 +00:00
postPatch = ''
# texlive for docs seems extreme
2016-07-30 14:35:51 +00:00
substituteInPlace autostuff \
2021-09-02 19:59:49 +00:00
--replace "$newdirs documentation" "$newdirs"
2016-07-30 14:35:51 +00:00
2021-09-02 19:59:49 +00:00
substituteInPlace sea/src/DEF_grammar_lex.l --replace "ifndef FLEX_BETA" \
"if (YY_FLEX_MAJOR_VERSION <= 2) && (YY_FLEX_MINOR_VERSION < 6)"
2016-07-30 14:35:51 +00:00
2021-09-02 19:59:49 +00:00
./autostuff
2016-07-30 14:35:51 +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/
'';
meta = with lib; {
2021-09-02 19:59:49 +00:00
description = "(deprecated) Complete set of free CAD tools and portable libraries for VLSI design";
homepage = "http://coriolis.lip6.fr/";
2016-07-30 14:35:51 +00:00
license = with licenses; gpl2Plus;
2021-09-02 19:59:49 +00:00
maintainers = with maintainers; [ l-as ];
2016-07-30 14:35:51 +00:00
platforms = with platforms; linux;
};
}