gnu: arachne-pnr: Fix tests.

* gnu/packages/fpga.scm (arachne-pnr)[arguments]: Add #:make-flags.
<#:phases>[configure]: Remove Makefile substitution.
This commit is contained in:
Danny Milosavljevic 2019-01-15 13:56:49 +01:00
parent 72dd271cee
commit eccd3f6d2e
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 5 additions and 7 deletions

View File

@ -274,16 +274,14 @@ Includes the actual FTDI connector.")
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
#:make-flags
(list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
(string-append "ICEBOX=" (string-append
(assoc-ref %build-inputs "icestorm")
"/share/icebox")))
#:phases (modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs inputs #:allow-other-keys)
(substitute* '("Makefile")
(("DESTDIR = .*") (string-append "DESTDIR = "
(assoc-ref outputs "out")
"\n"))
(("ICEBOX = .*") (string-append "ICEBOX = "
(assoc-ref inputs "icestorm")
"/share/icebox\n")))
(substitute* '("./tests/fsm/generate.py"
"./tests/combinatorial/generate.py")
(("#!/usr/bin/python") "#!/usr/bin/python2"))