~ruther/guix-local

b500dc2e83adc5529b890349af48655d0adaf1f8 — Theodoros Foradis 9 years ago 97bede8
gnu: icestorm: Replace reference in icebox_vlog.

* gnu/packages/fpga.scm (icestorm)[arguments]: Add phase
"fix-usr-local" to replace reference to /usr/local/share.
1 files changed, 5 insertions(+), 0 deletions(-)

M gnu/packages/fpga.scm
M gnu/packages/fpga.scm => gnu/packages/fpga.scm +5 -0
@@ 231,6 231,11 @@ For synthesis, the compiler generates netlists in the desired format.")
                (("-I/usr/local/include") "")
                (("-L/usr/local/lib") ""))
              #t))
          (add-after 'remove-usr-local 'fix-usr-local
            (lambda* (#:key outputs #:allow-other-keys)
              (substitute* "icebox/icebox_vlog.py"
                (("/usr/local/share") (string-append (assoc-ref outputs "out") "/share")))
              #t))
          (delete 'configure))))
    (inputs
     `(("libftdi" ,libftdi)))