warning: Git tree '/home/cole/code/cosmic-nix/cosmic-flake/master' is dirty
this derivation will be built:
/nix/store/ll35icri1hdzg781ahmyxhwyiqa05ddy-xdg-desktop-portal-cosmic-0.1.0.drv
building '/nix/store/ll35icri1hdzg781ahmyxhwyiqa05ddy-xdg-desktop-portal-cosmic-0.1.0.drv'...
xdg-desktop-portal-cosmic> unpacking sources
xdg-desktop-portal-cosmic> unpacking source archive /nix/store/83i5scbx4zb1d9xciijzsqqibrjjybzh-source
xdg-desktop-portal-cosmic> source root is source
xdg-desktop-portal-cosmic> patching sources
xdg-desktop-portal-cosmic> Executing configureCargoCommonVars
xdg-desktop-portal-cosmic> copying cargo artifacts from /nix/store/8lbass88vdy4jwcbgacl61lj60abl8q6-xdg-desktop-portal-cosmic-deps-0.1.0/target to target
xdg-desktop-portal-cosmic> updateAutotoolsGnuConfigScriptsPhase
xdg-desktop-portal-cosmic> configuring
xdg-desktop-portal-cosmic> will append /build/source/.cargo-home/config.toml with contents of /nix/store/ky4d55qa73r7ww5snd9wfkdi1cvrkwzb-vendor-cargo-deps/config.toml
xdg-desktop-portal-cosmic> default configurePhase, nothing to do
xdg-desktop-portal-cosmic> building
xdg-desktop-portal-cosmic> ++ command cargo --version
xdg-desktop-portal-cosmic> cargo 1.72.0 (103a7ff2e 2023-08-15)
xdg-desktop-portal-cosmic> ++ command cargo build --release --message-format json-render-diagnostics --locked
xdg-desktop-portal-cosmic> Compiling bindgen v0.66.1
xdg-desktop-portal-cosmic> error: output file /build/source/target/release/deps/libbindgen-7bbe9a25d1013df4.rmeta is not writeable -- check its permissions
xdg-desktop-portal-cosmic> error: could not compile `bindgen` (lib) due to previous error
error: builder for '/nix/store/ll35icri1hdzg781ahmyxhwyiqa05ddy-xdg-desktop-portal-cosmic-0.1.0.drv' failed with exit code 101;
last 10 log lines:
> will append /build/source/.cargo-home/config.toml with contents of /nix/store/ky4d55qa73r7ww5snd9wfkdi1cvrkwzb-vendor-cargo-deps/config.toml
> default configurePhase, nothing to do
> building
> ++ command cargo --version
> cargo 1.72.0 (103a7ff2e 2023-08-15)
> ++ command cargo build --release --message-format json-render-diagnostics --locked
> Compiling bindgen v0.66.1
> error: output file /build/source/target/release/deps/libbindgen-7bbe9a25d1013df4.rmeta is not writeable -- check its permissions
>
> error: could not compile `bindgen` (lib) due to previous error
For full logs, run 'nix log /nix/store/ll35icri1hdzg781ahmyxhwyiqa05ddy-xdg-desktop-portal-cosmic-0.1.0.drv'.
Someone in the Nix Rust room suggested that this can be due to a dependency having some bad build.rs behavior.
It was recommended to use cargo vendor and then look at some build directives.
Someone in the Nix Rust room suggested that this can be due to a dependency having some bad
build.rs
behavior.It was recommended to use
cargo vendor
and then look at some build directives.This is the output from doing that: https://gist.github.com/colemickens/a7b77a7c21204dbf5a0b895f337d1d13
I hope to circle back to this, but maybe someone here has an idea which dependency might be to blame.