From 2c02c84cdceea6aebba06502cc740ab69e69bd5f Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 8 Mar 2017 11:33:01 +0100 Subject: [PATCH] verilator: fix Perl shebangs --- pkgs/applications/science/electronics/verilator/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/science/electronics/verilator/default.nix b/pkgs/applications/science/electronics/verilator/default.nix index 3c01f8f37498..ed4a430198a1 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";