guix-commits
[Top][All Lists]
Advanced

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

02/13: gnu: teensy-loader-cli: Don't use unstable tarball.


From: guix-commits
Subject: 02/13: gnu: teensy-loader-cli: Don't use unstable tarball.
Date: Wed, 20 Nov 2019 03:08:21 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 02191009a5e2070f1cb9c21f619ef782e18dfebd
Author: Efraim Flashner <address@hidden>
Date:   Tue Nov 19 17:19:54 2019 +0200

    gnu: teensy-loader-cli: Don't use unstable tarball.
    
    * gnu/packages/flashing-tools.scm (teensy-loader-cli)[version]: Use
    git-version.
    [source]: Download using git-fetch.
---
 gnu/packages/flashing-tools.scm | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm
index 7d5c1cf..51a0e0d 100644
--- a/gnu/packages/flashing-tools.scm
+++ b/gnu/packages/flashing-tools.scm
@@ -211,14 +211,15 @@ firmware from it.")
   (let ((commit "f289b7a2e5627464044249f0e5742830e052e360"))
     (package
       (name "teensy-loader-cli")
-      (version (string-append "2.1-1." (string-take commit 7)))
+      (version (git-version "2.1" "1" commit))
       (source
        (origin
-         (method url-fetch)
-         (uri (string-append "https://github.com/PaulStoffregen/";
-                             "teensy_loader_cli/archive/" commit ".tar.gz"))
-         (sha256 (base32 
"17wqc2q4fa473cy7f5m2yiyb9nq0qw7xal2kzrxzaikgm9rabsw8"))
-         (file-name (string-append "teensy-loader-cli-" version ".tar.gz" ))
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/PaulStoffregen/teensy_loader_cli.git";)
+                (commit commit)))
+         (sha256 (base32 
"0sssim56pwsxp5cp5dlf6mi9h5fx2592m6j1g7abnm0s09b0lpdx"))
+         (file-name (git-file-name name version))
          (modules '((guix build utils)))
          (snippet
           `(begin



reply via email to

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