mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
ghdl: init at 0.37
This commit is contained in:
parent
8e79583510
commit
b674acee6e
40
pkgs/development/compilers/ghdl/default.nix
Normal file
40
pkgs/development/compilers/ghdl/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchFromGitHub, gnat, zlib, llvm, lib
|
||||
, backend ? "mcode" }:
|
||||
|
||||
assert backend == "mcode" || backend == "llvm";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ghdl-${backend}";
|
||||
version = "0.37";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ghdl";
|
||||
repo = "ghdl";
|
||||
rev = "v${version}";
|
||||
sha256 = "0b53yl4im33c1cd4mdyc4ks9cmrpixym17gzchfmplrl22w3l17y";
|
||||
};
|
||||
|
||||
LIBRARY_PATH = "${stdenv.cc.libc}/lib";
|
||||
|
||||
buildInputs = [ gnat zlib ];
|
||||
|
||||
preConfigure = ''
|
||||
# If llvm 7.0 works, 7.x releases should work too.
|
||||
sed -i 's/check_version 7.0/check_version 7/g' configure
|
||||
'';
|
||||
|
||||
configureFlags = lib.optional (backend == "llvm")
|
||||
"--with-llvm-config=${llvm}/bin/llvm-config";
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ghdl/ghdl";
|
||||
description = "VHDL 2008/93/87 simulator";
|
||||
maintainers = with maintainers; [ lucus16 ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
@ -8429,6 +8429,16 @@ in
|
||||
profiledCompiler = false;
|
||||
});
|
||||
|
||||
ghdl = ghdl-mcode;
|
||||
|
||||
ghdl-mcode = callPackage ../development/compilers/ghdl {
|
||||
backend = "mcode";
|
||||
};
|
||||
|
||||
ghdl-llvm = callPackage ../development/compilers/ghdl {
|
||||
backend = "llvm";
|
||||
};
|
||||
|
||||
gcl = callPackage ../development/compilers/gcl {
|
||||
gmp = gmp4;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user