summary refs log tree commit diff
path: root/gnu/packages/popt.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2019-02-22 02:53:12 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2019-02-23 03:30:10 +0100
commit400457af5ff3824cd189176293e5b2723945ed00 (patch)
treeafe17b5f1c09ebe7b8e68b66177a9dd1cf146ab8 /gnu/packages/popt.scm
parent7f5c74d149d045132805b4307543e91166a3271a (diff)
downloadguix-400457af5ff3824cd189176293e5b2723945ed00.tar.gz
gnu: gflags: Don't use NAME in source URI.
* gnu/packages/popt.scm (gflags)[source]: Hard-code NAME.
Diffstat (limited to 'gnu/packages/popt.scm')
-rw-r--r--gnu/packages/popt.scm18
1 files changed, 10 insertions, 8 deletions
diff --git a/gnu/packages/popt.scm b/gnu/packages/popt.scm
index 6904d98ddf..e3f5fa1895 100644
--- a/gnu/packages/popt.scm
+++ b/gnu/packages/popt.scm
@@ -21,6 +21,7 @@
 (define-module (gnu packages popt)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system cmake)
   #:use-module (guix licenses))
@@ -97,14 +98,15 @@ similar to getopt(3), it contains a number of enhancements, including:
   (package
     (name "gflags")
     (version "2.2.2")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/gflags/gflags"
-                                  "/archive/v" version ".tar.gz"))
-              (sha256
-               (base32
-                "1ksdqrk2jjcrqkgxkp6jj8vf8k5i794x5p1b6lxm2rvkrwajzbrl"))
-              (file-name (string-append name "-" version ".tar.gz"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/gflags/gflags.git")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "147i3md3nxkjlrccqg4mq1kyzc7yrhvqv5902iibc7znkvzdvlp0"))
+       (file-name (git-file-name name version))))
     (build-system cmake-build-system)
     (arguments
      '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"