2020-11-12 23:50:31 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, m4, tcsh, libX11, tcl, tk
|
|
|
|
, cairo, ncurses, mesa_glu, python3
|
|
|
|
}:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2020-11-12 23:50:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-03 17:38:23 +00:00
|
|
|
pname = "magic-vlsi";
|
2020-11-12 23:50:31 +00:00
|
|
|
version = "8.3.80";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-11-12 23:50:31 +00:00
|
|
|
url = "http://opencircuitdesign.com/magic/archive/magic-${version}.tgz";
|
|
|
|
sha256 = "0a5x4sh5xsr79pqbgv6221jc4fvaxkg2pvrdhy1cs4bmsc1sbm9j";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ m4 tcsh libX11 tcl tk cairo ncurses mesa_glu ];
|
|
|
|
nativeBuildInputs = [ python3 ];
|
2020-11-12 23:50:31 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}"
|
|
|
|
"--with-tk=${tk}"
|
|
|
|
"--disable-werror"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts/*
|
|
|
|
'';
|
|
|
|
|
2020-11-12 23:50:31 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
patches = [
|
|
|
|
./0001-strip-bin-prefix.patch
|
|
|
|
./0002-fix-format-security.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "VLSI layout tool written in Tcl";
|
2020-11-12 23:50:31 +00:00
|
|
|
homepage = "http://opencircuitdesign.com/magic/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ anna328p thoughtpolice ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|