mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: squashfs-tools: Build from upstream git.
* gnu/packages/compression.scm (squashfs-tools)[source]: Use GIT-FETCH and GIT-FILE-NAME.
This commit is contained in:
parent
1f34f8db12
commit
d037bf0294
1 changed files with 17 additions and 16 deletions
|
@ -856,22 +856,23 @@ (define-public squashfs-tools
|
|||
(package
|
||||
(name "squashfs-tools")
|
||||
(version "4.4")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://sourceforge/squashfs/squashfs/"
|
||||
"squashfs" version "/"
|
||||
"squashfs" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0zmhvczscqz0mzh4b9m8m42asq14db0a6lc8clp5ljq5ybrv70d9"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Fix build with -fno-common (default in GCC 10).
|
||||
;; Remove for squashfs-tools > 4.4.
|
||||
(substitute* "squashfs-tools/mksquashfs.h"
|
||||
(("struct cache \\*bwriter_buffer" all)
|
||||
(string-append "extern " all)))))))
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/plougher/squashfs-tools")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0697fv8n6739mcyn57jclzwwbbqwpvjdfkv1qh9s56lvyqnplwaw"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Fix build with -fno-common (default in GCC 10).
|
||||
;; Remove for squashfs-tools > 4.4.
|
||||
(substitute* "squashfs-tools/mksquashfs.h"
|
||||
(("struct cache \\*bwriter_buffer" all)
|
||||
(string-append "extern " all)))))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ; no check target
|
||||
|
|
Loading…
Reference in a new issue