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.
master
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
1 changed files with 5 additions and 0 deletions

View File

@ -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)))