summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2016-09-27 02:04:59 +0200
committerEfraim Flashner <efraim@flashner.co.il>2016-10-09 18:19:22 +0300
commitbca3797be4d471667c5f27ed4a08bcc2bbe1cbb0 (patch)
treecd78568a9fa3c5a15b4b337456e48a0245dae1a3 /gnu
parent36aa11c7858dce4ea2f55c48452c2a4c1a2fff5f (diff)
gnu: Add arachne-pnr.
* gnu/packages/fpga.scm (arachne-pnr): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/fpga.scm44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index e5e1517c44e..b7036b34ccc 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -228,3 +228,47 @@ For synthesis, the compiler generates netlists in the desired format.")
228 (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools. 228 (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools.
229Includes the actual FTDI connector.") 229Includes the actual FTDI connector.")
230 (license license:isc)))) 230 (license license:isc))))
231
232(define-public arachne-pnr
233 (let ((commit "52e69ed207342710080d85c7c639480e74a021d7")
234 (revision "1"))
235 (package
236 (name "arachne-pnr")
237 (version (string-append "0.0-" revision "-" (string-take commit 9)))
238 (source (origin
239 (method git-fetch)
240 (uri (git-reference
241 (url "https://github.com/cseed/arachne-pnr.git")
242 (commit commit)))
243 (file-name (string-append name "-" version "-checkout"))
244 (sha256
245 (base32
246 "15bdw5yxj76lxrwksp6liwmr6l1x77isf4bs50ys9rsnmiwh8c3w"))))
247 (build-system gnu-build-system)
248 (arguments
249 `(#:test-target "test"
250 #:phases (modify-phases %standard-phases
251 (replace 'configure
252 (lambda* (#:key outputs inputs #:allow-other-keys)
253 (substitute* '("Makefile")
254 (("DESTDIR = .*") (string-append "DESTDIR = "
255 (assoc-ref outputs "out")
256 "\n"))
257 (("ICEBOX = .*") (string-append "ICEBOX = "
258 (assoc-ref inputs "icestorm")
259 "/share/icebox\n")))
260 (substitute* '("./tests/fsm/generate.py"
261 "./tests/combinatorial/generate.py")
262 (("#!/usr/bin/python") "#!/usr/bin/python2"))
263 #t)))))
264 (inputs
265 `(("icestorm" ,icestorm)))
266 (native-inputs
267 `(("git" ,git) ; for determining its own version string
268 ("yosys" ,yosys) ; for tests
269 ("perl" ,perl) ; for shasum
270 ("python-2" ,python-2))) ; for tests
271 (home-page "https://github.com/cseed/arachne-pnr")
272 (synopsis "Place-and-Route tool for FPGAs")
273 (description "Arachne-PNR is a Place-and-Route Tool For FPGAs.")
274 (license license:gpl2))))