diff --git a/pkgs/applications/science/electronics/verilator/default.nix b/pkgs/applications/science/electronics/verilator/default.nix index 3c01f8f3749..ed4a430198a 100644 --- a/pkgs/applications/science/electronics/verilator/default.nix +++ b/pkgs/applications/science/electronics/verilator/default.nix @@ -12,6 +12,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; buildInputs = [ perl flex_2_6_1 bison ]; + 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";