Merge pull request #136637 from L-as/alliance

alliance: 5.1.1 -> unstable-2020-12-04

authored by

figsoda and committed by
GitHub
715d551a 07d9c44a

+21 -41
+21 -41
pkgs/applications/science/electronics/alliance/default.nix
··· 1 - { lib, stdenv, fetchurl 2 - , xorgproto, motif, libX11, libXt, libXpm, bison 3 - , flex, automake, autoconf, libtool, runtimeShell 1 + { lib, stdenv, fetchFromGitLab, xorgproto, motif, libX11, libXt, libXpm, bison 2 + , flex, automake, autoconf, libtool 4 3 }: 5 4 6 5 stdenv.mkDerivation rec { 7 6 pname = "alliance"; 8 - version = "5.1.1"; 7 + version = "unstable-2021-09-15"; 9 8 10 - src = fetchurl { 11 - url = "http://www-asim.lip6.fr/pub/alliance/distribution/5.0/${pname}-${version}.tar.bz2"; 12 - sha256 = "046c9qwl1vbww0ljm4xyxf5jpz9nq62b2q0wdz9xjimgh4c207w1"; 9 + src = fetchFromGitLab { 10 + domain = "gitlab.lip6.fr"; 11 + owner = "vlsi-eda"; 12 + repo = "alliance"; 13 + rev = "5e83c92d0307cce9d599f7099fb0023f81d26d65"; 14 + sha256 = "Vd3MTT4eKn4FMt0/F4fQUPcWq25kH0FpeGxQUOetKPY="; 13 15 }; 14 16 17 + prePatch = "cd alliance/src"; 15 18 16 19 nativeBuildInputs = [ libtool automake autoconf flex ]; 17 20 buildInputs = [ xorgproto motif libX11 libXt libXpm bison ]; 18 21 19 - sourceRoot = "alliance/src/"; 22 + ALLIANCE_TOP = placeholder "out"; 20 23 21 24 configureFlags = [ 22 - "--prefix=$(out)" 25 + "--prefix=${placeholder "out"}" "--enable-alc-shared" 23 26 ]; 24 27 25 - preConfigure = '' 26 - mkdir -p $out/etc 27 - 28 - #texlive for docs seems extreme 29 - mkdir -p $out/share/alliance 30 - mv ./documentation $out/share/alliance 28 + postPatch = '' 29 + # texlive for docs seems extreme 31 30 substituteInPlace autostuff \ 32 - --replace "$newdirs documentation" "$newdirs" \ 33 - --replace documentation Solaris 31 + --replace "$newdirs documentation" "$newdirs" 34 32 35 - substituteInPlace sea/src/DEF_grammar_lex.l \ 36 - --replace "ifndef FLEX_BETA" "if (YY_FLEX_MAJOR_VERSION <= 2) && (YY_FLEX_MINOR_VERSION < 6)" 37 - ./autostuff 38 - ''; 33 + substituteInPlace sea/src/DEF_grammar_lex.l --replace "ifndef FLEX_BETA" \ 34 + "if (YY_FLEX_MAJOR_VERSION <= 2) && (YY_FLEX_MINOR_VERSION < 6)" 39 35 40 - allianceInstaller = '' 41 - #!${runtimeShell} 42 - cp -v -r -n --no-preserve=mode $out/etc/* /etc/ > /etc/alliance-install.log 43 - ''; 44 - 45 - allianceUnInstaller = '' 46 - #!${runtimeShell} 47 - awk '{print \$3}' /etc/alliance-install.log | xargs rm 48 - awk '{print \$3}' /etc/alliance-install.log | xargs rmdir 49 - rm /etc/alliance-install.log 36 + ./autostuff 50 37 ''; 51 38 52 39 postInstall = '' ··· 55 42 cp -p distrib/*.desktop $out/share/applications/ 56 43 mkdir -p $out/icons/hicolor/48x48/apps/ 57 44 cp -p distrib/*.png $out/icons/hicolor/48x48/apps/ 58 - 59 - echo "${allianceInstaller}" > $out/bin/alliance-install 60 - chmod +x $out/bin/alliance-install 61 - 62 - echo "${allianceUnInstaller}" > $out/bin/alliance-uninstall 63 - chmod +x $out/bin/alliance-uninstall 64 45 ''; 65 46 66 47 meta = with lib; { 67 - description = "Complete set of free CAD tools and portable libraries for VLSI design"; 68 - homepage = "http://www-asim.lip6.fr/recherche/alliance/"; 48 + description = "(deprecated) Complete set of free CAD tools and portable libraries for VLSI design"; 49 + homepage = "http://coriolis.lip6.fr/"; 69 50 license = with licenses; gpl2Plus; 70 - maintainers = with maintainers; [ ]; 51 + maintainers = with maintainers; [ l-as ]; 71 52 platforms = with platforms; linux; 72 - broken = true; 73 53 }; 74 54 }