1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Merge pull request #86101 from dkudriavtsev/magic-vlsi

magic-vlsi: init at 8.3.5
This commit is contained in:
Benjamin Hipple 2020-05-02 13:51:41 -04:00 committed by GitHub
commit 6b21541772
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,10 @@
diff --git a/scripts/makedbh b/scripts/makedbh
index 01e4fa5..d6299c6 100755
--- a/scripts/makedbh
+++ b/scripts/makedbh
@@ -1,4 +1,4 @@
-#!/bin/csh -f
+#!/usr/bin/env tcsh
#
# makes the "database.h" (1st argument, $1) file from "database.h.in"
# (2nd argument, $2), setting various mask operation definitions

View file

@ -0,0 +1,19 @@
diff --git a/database/DBio.c b/database/DBio.c
index 93c4b0b..292ea5f 100644
--- a/database/DBio.c
+++ b/database/DBio.c
@@ -2378,12 +2378,12 @@ DBCellWriteFile(cellDef, f)
#define FPRINTF(f,s)\
{\
- if (fprintf(f,s) == EOF) goto ioerror;\
+ if (fprintf(f,"%s",s) == EOF) goto ioerror;\
DBFileOffset += strlen(s);\
}
#define FPRINTR(f,s)\
{\
- if (fprintf(f,s) == EOF) return 1;\
+ if (fprintf(f,"%s",s) == EOF) return 1;\
DBFileOffset += strlen(s);\
}

View file

@ -0,0 +1,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.dkudriavtsev ];
};
}

View file

@ -3066,6 +3066,8 @@ in
kramdown-asciidoc = callPackage ../tools/typesetting/kramdown-asciidoc { };
magic-vlsi = callPackage ../applications/science/electronics/magic-vlsi { };
mcrcon = callPackage ../tools/networking/mcrcon {};
rage = callPackage ../tools/security/rage {