netgen-vlsi: init at 1.5.314
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
tcl,
|
||||
tk,
|
||||
m4,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "netgen";
|
||||
version = "1.5.314";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RTimothyEdwards";
|
||||
repo = "netgen";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-g8d/faYjhL6WXSShqWn9n+4cUJ8qKtqyEgyIRsrHo5o=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
m4
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
tcl
|
||||
tk
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-std=gnu89";
|
||||
|
||||
configureFlags = [
|
||||
"--with-tcl=${lib.getLib tcl}/lib"
|
||||
"--with-tk=${lib.getLib tk}/lib"
|
||||
];
|
||||
|
||||
# Netgen generates a wrapper script with a hardcoded /bin/bash shebang.
|
||||
# We fix it here because patchShebangs sometimes misses it in post-install.
|
||||
postFixup = ''
|
||||
sed -i "1s|#!/bin/bash|#!${stdenv.shell}|" $out/bin/netgen
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "LVS tool for VLSI circuit netlists";
|
||||
mainProgram = "netgen";
|
||||
homepage = "https://github.com/RTimothyEdwards/netgen";
|
||||
license = lib.licenses.gpl1Only;
|
||||
maintainers = [ lib.maintainers.gonsolo ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user