gnu: guile-aa-tree: Restrict install to aa-tree.scm.
* gnu/packages/guile-xyz.scm (guile-aa-tree): [native-inputs]: Remove guile-2.2. [inputs]: Add guile-2.2. [arguments]: (scheme-file-regexp): Restrict install to aa-tree.scm [arguments]: (phases): Add check phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									5a427d44ef
								
							
						
					
					
						commit
						27c4cbb571
					
				
					 1 changed files with 17 additions and 1 deletions
				
			
		|  | @ -1293,7 +1293,23 @@ types are supported.") | ||||||
|                (base32 |                (base32 | ||||||
|                 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh")))) |                 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh")))) | ||||||
|     (build-system guile-build-system) |     (build-system guile-build-system) | ||||||
|     (native-inputs (list guile-2.2)) |     (inputs (list guile-2.2)) | ||||||
|  |     (arguments | ||||||
|  |      (list | ||||||
|  |       #:scheme-file-regexp "^aa-tree\\.scm" | ||||||
|  |       #:phases | ||||||
|  |       #~(modify-phases %standard-phases | ||||||
|  |           (add-before 'install-documentation 'check | ||||||
|  |             (lambda* (#:key inputs #:allow-other-keys) | ||||||
|  |               (let* ((guile      #$(this-package-input "guile")) | ||||||
|  |                      (effective  (target-guile-effective-version guile)) | ||||||
|  |                      (go-dir     (string-append #$output "/lib/guile/" | ||||||
|  |                                                 effective "/site-ccache/"))) | ||||||
|  |                 (invoke (search-input-file inputs "/bin/guile") | ||||||
|  |                         "--no-auto-compile" | ||||||
|  |                         "-C" go-dir | ||||||
|  |                         "-c" (string-append | ||||||
|  |                               "(load \"" (getcwd) "/test-aa-tree.scm\")")))))))) | ||||||
|     ;; https://savannah.nongnu.org/projects/guile-aa-tree |     ;; https://savannah.nongnu.org/projects/guile-aa-tree | ||||||
|     (home-page "https://qlfiles.net/guile-aa-tree/") |     (home-page "https://qlfiles.net/guile-aa-tree/") | ||||||
|     (synopsis "AA tree data structure for Guile") |     (synopsis "AA tree data structure for Guile") | ||||||
|  |  | ||||||
		Reference in a new issue