uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
58
pkgs/applications/science/electronics/alliance/default.nix
Normal file
58
pkgs/applications/science/electronics/alliance/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib, stdenv, fetchFromGitLab, xorgproto, motif, libX11, libXt, libXpm, bison
|
||||
, flex, automake, autoconf, libtool
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alliance";
|
||||
version = "unstable-2022-01-13";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.lip6.fr";
|
||||
owner = "vlsi-eda";
|
||||
repo = "alliance";
|
||||
rev = "ebece102e15c110fc79f1da50524c68fd9523f0c";
|
||||
hash = "sha256-NGtE3ZmN9LrgXG4NIKrp7dFRVzrKMoudlPUtYYKrZjY=";
|
||||
};
|
||||
|
||||
prePatch = "cd alliance/src";
|
||||
|
||||
nativeBuildInputs = [ libtool automake autoconf flex ];
|
||||
buildInputs = [ xorgproto motif libX11 libXt libXpm 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"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# texlive for docs seems extreme
|
||||
substituteInPlace autostuff \
|
||||
--replace "$newdirs documentation" "$newdirs"
|
||||
|
||||
substituteInPlace sea/src/DEF_grammar_lex.l --replace "ifndef FLEX_BETA" \
|
||||
"if (YY_FLEX_MAJOR_VERSION <= 2) && (YY_FLEX_MINOR_VERSION < 6)"
|
||||
|
||||
./autostuff
|
||||
'';
|
||||
|
||||
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; {
|
||||
description = "(deprecated) Complete set of free CAD tools and portable libraries for VLSI design";
|
||||
homepage = "http://coriolis.lip6.fr/";
|
||||
license = with licenses; gpl2Plus;
|
||||
maintainers = with maintainers; [ l-as ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue