@@ -0,0 +1,39 @@
1+{ stdenv
2+, fetchFromGitHub
3+, bison
4+, flex
5+, verilog
6+}:
7+
8+stdenv.mkDerivation rec {
9+ pname = "vhd2vl";
10+ version = "unstable-2018-09-01";
11+
12+ src = fetchFromGitHub {
13+ owner = "ldoolitt";
14+ repo = pname;
15+ rev = "37e3143395ce4e7d2f2e301e12a538caf52b983c";
16+ sha256 = "17va2pil4938j8c93anhy45zzgnvq3k71a7glj02synfrsv6fs8n";
17+ };
18+
19+ nativeBuildInputs = [
20+ bison
21+ flex
22+ ];
23+
24+ buildInputs = [
25+ verilog
26+ ];
27+
28+ installPhase = ''
29+ mkdir -p $out/bin
30+ cp src/vhd2vl $out/bin/
31+ '';
32+
33+ meta = with stdenv.lib; {
34+ description = "VHDL to Verilog converter";
35+ homepage = "https://github.com/ldoolitt/vhd2vl";
36+ license = licenses.gpl2Plus;
37+ maintainers = with maintainers; [ matthuszagh ];
38+ };
39+}