2014-04-16 09:33:27 +01:00
|
|
|
{ stdenv, fetchurl, gnat, zlib }:
|
|
|
|
|
2016-03-03 13:04:36 +00:00
|
|
|
# I think that mcode can only generate x86 code,
|
|
|
|
# so it fails to link pieces on x86_64.
|
2014-04-16 09:33:27 +01:00
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
|
|
|
let
|
2016-03-03 13:04:36 +00:00
|
|
|
version = "0.33";
|
2014-04-16 09:33:27 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ghdl-mcode-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-03-03 13:04:36 +00:00
|
|
|
url = "https://github.com/tgingold/ghdl/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "09yvgqyglbakd74v2dgr470clzm744i232nixyffcds55vkij5da";
|
2014-04-16 09:33:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gnat zlib ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2016-03-03 13:04:36 +00:00
|
|
|
# Disable warnings-as-errors, because there are warnings (unused things)
|
|
|
|
sed -i s/-gnatwae/-gnatwa/ Makefile.in ghdl.gpr.in
|
2014-04-16 09:33:27 +01:00
|
|
|
'';
|
|
|
|
|
2016-03-03 13:04:36 +00:00
|
|
|
enableParallelBuilding = true;
|
2014-04-16 09:33:27 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://sourceforge.net/p/ghdl-updates/wiki/Home/";
|
|
|
|
description = "Free VHDL simulator, mcode flavour";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-04-16 09:33:27 +01:00
|
|
|
};
|
|
|
|
}
|