2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchurl
|
|
|
|
, python3
|
|
|
|
, m4
|
|
|
|
, cairo
|
|
|
|
, libX11
|
|
|
|
, mesa_glu
|
|
|
|
, ncurses
|
|
|
|
, tcl
|
|
|
|
, tcsh
|
|
|
|
, tk
|
2020-11-12 23:50:31 +00:00
|
|
|
}:
|
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";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "8.3.277";
|
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";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-cS3KaIVwGN/mMfRKjJxzdY6DeNV7tw2fATIHrFBV0fY=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3 ];
|
2021-01-05 17:05:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
libX11
|
|
|
|
m4
|
|
|
|
mesa_glu
|
|
|
|
ncurses
|
|
|
|
tcl
|
|
|
|
tcsh
|
|
|
|
tk
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
description = "VLSI layout tool written in Tcl";
|
2020-11-12 23:50:31 +00:00
|
|
|
homepage = "http://opencircuitdesign.com/magic/";
|
|
|
|
license = licenses.mit;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ anna328p thoughtpolice AndersonTorres ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|