gnu: rust-sqlite3-src-0.4: Unbundle sqlite3 source.
* gnu/packages/crates-io.scm (rust-sqlite3-src-0.4)[source]: Add snippet to remove bundled sqlite3 sources and force linking to shared library. Change-Id: If42f8a47b954f67f86c8c7aa7fba178df15cb971master
parent
a5d23a40a2
commit
2284999d1d
|
@ -73342,7 +73342,17 @@ OIDs)")
|
|||
(uri (crate-uri "sqlite3-src" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "14ancc9jafw5ql9carg27icjxcfrdz5izxk4bj7fp5n909x5m0fi"))))
|
||||
(base32 "14ancc9jafw5ql9carg27icjxcfrdz5izxk4bj7fp5n909x5m0fi"))
|
||||
(snippet
|
||||
#~(begin (use-modules (guix build utils))
|
||||
;; Only allow for linking to system sqlite3.
|
||||
(delete-file-recursively "source")
|
||||
(delete-file "build.rs")
|
||||
(with-output-to-file "build.rs"
|
||||
(lambda _
|
||||
(format #t "fn main (){~@
|
||||
println!(\"cargo:rustc-link-lib=sqlite3\");~@
|
||||
}~%")))))))
|
||||
(arguments
|
||||
`(#:cargo-inputs
|
||||
(("rust-cc" ,rust-cc-1)
|
||||
|
|
Reference in New Issue