me
/
guix
Archived
1
0
Fork 0

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: If42f8a47b954f67f86c8c7aa7fba178df15cb971
master
Efraim Flashner 2023-12-20 12:47:20 +02:00
parent a5d23a40a2
commit 2284999d1d
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 11 additions and 1 deletions

View File

@ -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)