verilog: unstable-2020-10-24 -> 11.0

This commit is contained in:
Pavol Rusnak 2020-11-05 17:27:58 +01:00
parent e43e173ae1
commit 960b4816a5
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,40 +1,47 @@
{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison, readline, ncurses { stdenv
, bzip2, zlib , fetchFromGitHub
# Test inputs , autoconf
, bison
, bzip2
, flex
, gperf
, ncurses
, perl , perl
, readline
, zlib
}: }:
let let
iverilog-test = fetchFromGitHub { iverilog-test = fetchFromGitHub {
owner = "steveicarus"; owner = "steveicarus";
repo = "ivtest"; repo = "ivtest";
rev = "d4c80beb845cad92136c05074b3910b822a9315f"; rev = "253609b89576355b3bef2f91e90db62223ecf2be";
sha256 = "13cpnkki3xmhsh2v4bp2s35mhwknapcikdh85g4q6925ka940r45"; sha256 = "18i7jlr2csp7mplcrwjhllwvb6w3v7x7mnx7vdw48nd3g5scrydx";
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "iverilog"; pname = "iverilog";
version = "unstable-2020-10-24"; version = "11.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "steveicarus"; owner = "steveicarus";
repo = pname; repo = pname;
rev = "d6e01d0c557253414109a4dde46b2966a5a3fb08"; rev = "v${stdenv.lib.replaceStrings ["."] ["_"] version}";
sha256 = "1bl75mbycj9zpjbpay8z12384yk9ih5q9agsrjh9pva0vv3h4y4y"; sha256 = "0nzcyi6l2zv9wxzsv9i963p3igyjds0n55x0ph561mc3pfbc7aqp";
}; };
nativeBuildInputs = [ autoconf gperf flex bison ]; nativeBuildInputs = [ autoconf bison flex gperf ];
buildInputs = [ readline ncurses bzip2 zlib ];
preConfigure = "bash $PWD/autoconf.sh"; buildInputs = [ bzip2 ncurses readline zlib ];
preConfigure = "sh autoconf.sh";
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true; doCheck = true;
# most tests pass, but some that rely on exact text of floating-point numbers
# fail on aarch64.
doInstallCheck = !stdenv.isAarch64;
installCheckInputs = [ perl ]; installCheckInputs = [ perl ];
installCheckPhase = '' installCheckPhase = ''
# copy tests to allow writing results # copy tests to allow writing results
export TESTDIR=$(mktemp -d) export TESTDIR=$(mktemp -d)
@ -53,7 +60,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Icarus Verilog compiler"; description = "Icarus Verilog compiler";
homepage = "http://iverilog.icarus.com/"; homepage = "http://iverilog.icarus.com/"; # https does not work
license = with licenses; [ gpl2Plus lgpl21Plus ]; license = with licenses; [ gpl2Plus lgpl21Plus ];
maintainers = with maintainers; [ winden thoughtpolice ]; maintainers = with maintainers; [ winden thoughtpolice ];
platforms = platforms.all; platforms = platforms.all;