guix-commits
[Top][All Lists]
Advanced

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

29/41: gnu: polyml: Fetch sources from git.


From: guix-commits
Subject: 29/41: gnu: polyml: Fetch sources from git.
Date: Thu, 29 Nov 2018 16:44:09 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit ec4e9455d3acd4850dd0006216a7df1789e4320d
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Nov 29 22:19:58 2018 +0100

    gnu: polyml: Fetch sources from git.
    
    * gnu/packages/sml.scm (polyml)[source]: Fetch from git.
---
 gnu/packages/sml.scm | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm
index 1d7fd3f..0874b81 100644
--- a/gnu/packages/sml.scm
+++ b/gnu/packages/sml.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 Andy Patterson <address@hidden>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24,6 +25,7 @@
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages))
 
@@ -31,14 +33,15 @@
   (package
     (name "polyml")
     (version "5.7.1")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append "https://github.com/polyml/polyml/archive/v";
-                           version ".tar.gz"))
-       (sha256
-        (base32 "0a3hcv80p9j0fny6726kvgmzjzdmak9xw7f7rv8sxv96nhjdi3fi"))
-       (file-name (string-append name "-" version ".tar.gz"))))
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/polyml/polyml.git";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0j0wv3ijfrjkfngy7dswm4k1dchk3jak9chl5735dl8yrl8mq755"))))
     (build-system gnu-build-system)
     (inputs
      `(("gmp" ,gmp)



reply via email to

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