guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: gnu: agda-ial: Fetch source from Git.


From: guix-commits
Subject: 04/04: gnu: agda-ial: Fetch source from Git.
Date: Tue, 27 Aug 2019 18:27:24 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 48752f277c589435aab4d80947fa80f01577d55d
Author: Ludovic Courtès <address@hidden>
Date:   Wed Aug 28 00:19:48 2019 +0200

    gnu: agda-ial: Fetch source from Git.
    
    This addresses a 'guix lint' warning.
    
    * gnu/packages/agda.scm (agda-ial)[source]: Change to use 'git-fetch'.
    [arguments]: Change 'install phase accordingly; adjust its 'find-files'
    regexp.
---
 gnu/packages/agda.scm | 40 +++++++++++++++++++---------------------
 1 file changed, 19 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/agda.scm b/gnu/packages/agda.scm
index 8840790..56d4b15 100644
--- a/gnu/packages/agda.scm
+++ b/gnu/packages/agda.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2018 Alex Vong <address@hidden>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2018 John Soo <address@hidden>
+;;; Copyright © 2019 Ludovic Courtès <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29,6 +30,7 @@
   #:use-module (guix build-system haskell)
   #:use-module (guix build-system trivial)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages))
 
@@ -161,16 +163,15 @@ Agda.  It also aids the input of Unicode characters.")))
   (package
     (name "agda-ial")
     (version "1.5.0")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append
-             "https://github.com/cedille/ial/archive/v";
-             version ".tar.gz"))
-       (file-name (string-append name "-" version))
-       (sha256
-        (base32
-         "0ilgalmx3kljy6j9i8d7w6r7ky4bq0xzxanwfr6kyx56mf2sf0zh"))))
+    (home-page "https://github.com/cedille/ial";)
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference (url home-page)
+                                  (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0dlis6v6nzbscf713cmwlx8h9n2gxghci8y21qak3hp18gkxdp0g"))))
     (build-system gnu-build-system)
     (inputs
      `(("agda" ,agda)))
@@ -184,17 +185,14 @@ Agda.  It also aids the input of Unicode characters.")))
          (delete 'check)
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)
-             (for-each
-              (lambda (file)
-                (install-file
-                 file
-                 (string-append
-                  (assoc-ref outputs "out") "/include/agda/ial")))
-              (find-files "." ".*agda.*"))
-             #t)))))
-    (home-page "https://github.com/cedille/ial";)
-    (synopsis
-     "The Iowa Agda Library")
+             (let* ((out     (assoc-ref outputs "out"))
+                    (include (string-append out "/include/agda/ial")))
+               (for-each (lambda (file)
+                           (make-file-writable file)
+                           (install-file file include))
+                         (find-files "." "\\.agda$"))
+               #t))))))
+    (synopsis "The Iowa Agda Library")
     (description
      "The goal is to provide a concrete library focused on verification
 examples, as opposed to mathematics.  The library has a good number



reply via email to

[Prev in Thread] Current Thread [Next in Thread]