1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00
nixpkgs/pkgs/applications/science/electronics/verilator/default.nix

27 lines
801 B
Nix
Raw Normal View History

2017-02-27 14:00:25 +00:00
{ stdenv, fetchurl, perl, flex_2_6_1, bison }:
stdenv.mkDerivation rec {
name = "verilator-${version}";
2017-02-27 14:00:25 +00:00
version = "3.900";
src = fetchurl {
url = "http://www.veripool.org/ftp/${name}.tgz";
2017-02-27 14:00:25 +00:00
sha256 = "0yvbibcysdiw6mphda0lfs56wz6v450px2420x0hbd3rc7k53s2b";
};
enableParallelBuilding = true;
2017-02-27 14:00:25 +00:00
buildInputs = [ perl flex_2_6_1 bison ];
2017-03-08 10:33:01 +00:00
postInstall = ''
sed -i -e '3a\#!/usr/bin/env perl' -e '1,3d' $out/bin/{verilator,verilator_coverage,verilator_profcfunc}
'';
meta = {
description = "Fast and robust (System)Verilog simulator/compiler";
homepage = "http://www.veripool.org/wiki/verilator";
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
};
}