Using Guix as a shell system
Needed to package corrosion and still need to figure out how to tell the cargo build script to find where QtQML includes are in the guix shell
This commit is contained in:
parent
1b57171b1d
commit
db761d0399
5 changed files with 101 additions and 65 deletions
5
build.rs
5
build.rs
|
@ -1,4 +1,5 @@
|
|||
use cxx_qt_build::CxxQtBuilder;
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
CxxQtBuilder::new()
|
||||
|
@ -13,5 +14,9 @@ fn main() {
|
|||
.file("src/rust/presentation_model.rs")
|
||||
.file("src/rust/song_model.rs")
|
||||
.file("src/rust/ytdl.rs")
|
||||
.cc_builder (|cc| {
|
||||
println!("{:?}", env::var ("GUIX_ENVIRONMENT").unwrap_or_default());
|
||||
cc.include( env::var("GUIX_ENVIRONMENT").unwrap_or_default() + "/include");
|
||||
})
|
||||
.build();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue