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.
This commit is contained in:
Theodoros Foradis 2017-01-14 20:31:34 +02:00 committed by Danny Milosavljevic
parent 97bede8466
commit b500dc2e83
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -231,6 +231,11 @@ (define-public icestorm
(("-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)))