mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
re-add snappy 1.1.8
This commit is contained in:
parent
b5d7a6be9a
commit
eb34ee537c
1 changed files with 27 additions and 24 deletions
|
@ -1188,29 +1188,32 @@ in the @code{debug} output), and binutils.")))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(define-public snappy
|
||||||
(use-modules (guix inferior) (guix channels)
|
(package
|
||||||
(srfi srfi-1)) ;pour « first »
|
(name "snappy")
|
||||||
|
(version "1.1.8")
|
||||||
|
(source
|
||||||
(define channels
|
(origin
|
||||||
;; L'ancienne révision depuis laquelle on veut
|
(method git-fetch)
|
||||||
;; extraire guile-json.
|
(uri (git-reference
|
||||||
(list (channel
|
(url "https://github.com/google/snappy")
|
||||||
(name 'guix)
|
(commit version)))
|
||||||
(url "https://git.savannah.gnu.org/git/guix.git")
|
(file-name (git-file-name name version))
|
||||||
(commit
|
(sha256
|
||||||
"c9c274172b781c51e67868c53c8b2ea394bf7a94")))) ; just before snappy 1.19
|
(base32 "1j0kslq2dvxgkcxl1gakhvsa731yrcvcaipcp5k8k7ayicvkv9jv"))
|
||||||
|
(patches (search-patches "snappy-add-O2-flag-in-CmakeLists.txt.patch"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
(define inferior
|
(arguments
|
||||||
;; Un inférieur représentant la révision ci-dessus.
|
`(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
|
||||||
(inferior-for-channels channels))
|
(home-page "https://github.com/google/snappy")
|
||||||
|
(synopsis "Fast compressor/decompressor")
|
||||||
(define-public old-snappy
|
(description "Snappy is a compression/decompression library. It does not
|
||||||
(first (lookup-inferior-packages inferior "snappy")
|
aim for maximum compression, or compatibility with any other compression library;
|
||||||
)
|
instead, it aims for very high speeds and reasonable compression. For instance,
|
||||||
)
|
compared to the fastest mode of zlib, Snappy is an order of magnitude faster
|
||||||
|
for most inputs, but the resulting compressed files are anywhere from 20% to
|
||||||
|
100% bigger.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
|
||||||
(define-public glicid-ceph
|
(define-public glicid-ceph
|
||||||
|
@ -1219,7 +1222,7 @@ in the @code{debug} output), and binutils.")))
|
||||||
(name "glicid-ceph")
|
(name "glicid-ceph")
|
||||||
|
|
||||||
|
|
||||||
(inputs `(("snappy",old-snappy)
|
(inputs `(("snappy",snappy@1.1.8)
|
||||||
,@(package-inputs ceph)))
|
,@(package-inputs ceph)))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue