gnu: dosfstools: Fetch sources from git.

* gnu/packages/disk.scm (dosfstools)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[native-inputs]: Add autoconf & automake.
This commit is contained in:
Tobias Geerinckx-Rice 2021-02-15 17:42:31 +01:00
parent 3ddb2dec2a
commit b77a690d53
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -379,19 +379,23 @@ (define-public dosfstools
(version "4.2") (version "4.2")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://github.com/dosfstools/dosfstools" (uri (git-reference
"/releases/download/v" version "/" (url "https://github.com/dosfstools/dosfstools")
"dosfstools-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 "09xm1540h9npqw0s5s2335xqxfdp059rl98l3fidr4h0z7mnx4k4")))) (base32 "1xygsixmmc9l7drxylggnzkqqiks8zmlsbhg3z723ii2ak94236s"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:configure-flags (list "--enable-compat-symlinks") `(#:configure-flags (list "--enable-compat-symlinks")
#:make-flags (list (string-append "PREFIX=" %output) #:make-flags (list (string-append "PREFIX=" %output)
"CC=gcc"))) "CC=gcc")))
(native-inputs (native-inputs
`(("xxd" ,xxd))) ; for tests `(("autoconf" ,autoconf)
("automake" ,automake)
;; For tests.
("xxd" ,xxd)))
(home-page "https://github.com/dosfstools/dosfstools") (home-page "https://github.com/dosfstools/dosfstools")
(synopsis "Utilities for making and checking MS-DOS FAT file systems") (synopsis "Utilities for making and checking MS-DOS FAT file systems")
(description (description