aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/science/electronics/magic-vlsi/default.nix
blob: 96849c3002986cffa2516a0f5d204537fe3cca4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl, m4, tcsh, libX11, tcl, tk, cairo, ncurses, mesa_glu, python3 }:

stdenv.mkDerivation {
  pname = "magic-vlsi";
  version = "8.3.5";

  src = fetchurl {
    url = "http://opencircuitdesign.com/magic/archive/magic-8.3.5.tgz";
    sha256 = "0wv4zmxlqjfaakgp802icn0cd9f8ylkz2sppix83axq8p5cg90yq";
  };

  buildInputs = [ m4 tcsh libX11 tcl tk cairo ncurses mesa_glu ];
  nativeBuildInputs = [ python3 ];

  configureFlags = [
    "--with-tcl=${tcl}"
    "--with-tk=${tk}"
    "--disable-werror"
  ];

  postPatch = ''
    patchShebangs scripts/*
  '';

  patches = [
    ./0001-strip-bin-prefix.patch
    ./0002-fix-format-security.patch
  ];

  meta = with stdenv.lib; {
    description = "VLSI layout tool written in Tcl";
    homepage = "http://opencircuitdesign.com/magic/";
    license = licenses.mit;
    maintainers = [ maintainers.anna328p ];
  };
}