From fa8f4b187f703950a9e3119549d264ff7e233123 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 14 Feb 2018 16:09:42 -0600 Subject: [PATCH] icestorm: fix chipdb location for icebox_vlog Signed-off-by: Austin Seipp --- pkgs/development/tools/icestorm/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/icestorm/default.nix b/pkgs/development/tools/icestorm/default.nix index 6351a01501d3..0307027faa2e 100644 --- a/pkgs/development/tools/icestorm/default.nix +++ b/pkgs/development/tools/icestorm/default.nix @@ -15,6 +15,13 @@ stdenv.mkDerivation rec { buildInputs = [ python3 libftdi ]; makeFlags = [ "PREFIX=$(out)" ]; + # fix icebox_vlog chipdb path. icestorm issue: + # https://github.com/cliffordwolf/icestorm/issues/125 + patchPhase = '' + substituteInPlace ./icebox/icebox_vlog.py \ + --replace /usr/local/share "$out/share" + ''; + meta = { description = "Documentation and tools for Lattice iCE40 FPGAs"; longDescription = ''