gnu: agda: Compile .agda files.
* gnu/packages/agda.scm: (agda)[arguments]: Compile .agda files. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
		
							parent
							
								
									1743172cdb
								
							
						
					
					
						commit
						253340dcc8
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
					@ -67,6 +67,19 @@
 | 
				
			||||||
       ("ghc-text" ,ghc-text)
 | 
					       ("ghc-text" ,ghc-text)
 | 
				
			||||||
       ("ghc-unordered-containers" ,ghc-unordered-containers)
 | 
					       ("ghc-unordered-containers" ,ghc-unordered-containers)
 | 
				
			||||||
       ("ghc-zlib" ,ghc-zlib)))
 | 
					       ("ghc-zlib" ,ghc-zlib)))
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     `(#:modules ((guix build haskell-build-system)
 | 
				
			||||||
 | 
					                  (guix build utils)
 | 
				
			||||||
 | 
					                  (srfi srfi-26))
 | 
				
			||||||
 | 
					       #:phases
 | 
				
			||||||
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
 | 
					         (add-after 'compile 'agda-compile
 | 
				
			||||||
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
 | 
					             (let* ((out (assoc-ref outputs "out"))
 | 
				
			||||||
 | 
					                    (agda-compiler (string-append out "/bin/agda")))
 | 
				
			||||||
 | 
					               (for-each (cut invoke agda-compiler <>)
 | 
				
			||||||
 | 
					                         (find-files (string-append out "/share") "\\.agda$"))
 | 
				
			||||||
 | 
					               #t))))))
 | 
				
			||||||
    (home-page "http://wiki.portal.chalmers.se/agda/")
 | 
					    (home-page "http://wiki.portal.chalmers.se/agda/")
 | 
				
			||||||
    (synopsis
 | 
					    (synopsis
 | 
				
			||||||
     "Dependently typed functional programming language and proof assistant")
 | 
					     "Dependently typed functional programming language and proof assistant")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue