diff --git a/pkgs/applications/science/electronics/verilog/default.nix b/pkgs/applications/science/electronics/verilog/default.nix index e68d2a4ab91a..d5c5f2ad1306 100644 --- a/pkgs/applications/science/electronics/verilog/default.nix +++ b/pkgs/applications/science/electronics/verilog/default.nix @@ -1,14 +1,22 @@ -{stdenv, fetchurl, gperf, flex, bison}: +{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison }: stdenv.mkDerivation rec { - name = "verilog-0.9.7"; + name = "iverilog-${version}"; + version = "2016.05.21"; - src = fetchurl { - url = "mirror://sourceforge/iverilog/${name}.tar.gz"; - sha256 = "0m3liqw7kq24vn7k8wvi630ljz0awz23r3sd4rcklk7vgghp4pks"; + src = fetchFromGitHub { + owner = "steveicarus"; + repo = "iverilog"; + rev = "45fbf558065c0fdac9aa088ecd34e9bf49e81305"; + sha256 = "137p7gkmp5kwih93i2a3lcf36a6k38j7fxglvw9y59w0233vj452"; }; - buildInputs = [ gperf flex bison ]; + patchPhase = '' + chmod +x $PWD/autoconf.sh + $PWD/autoconf.sh + ''; + + buildInputs = [ autoconf gperf flex bison ]; meta = { description = "Icarus Verilog compiler";