!9IQChSjwSHXPPWTa:lix.systems

Lix

1110 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms298 Servers

Load older messages


SenderMessageTime
16 Dec 2025
@helle:tacobelllabs.nethelle (just a stray cat girl)oh...15:52:00
@helle:tacobelllabs.nethelle (just a stray cat girl)is that the error we think it is, let me check15:52:46
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)

i SHOULD have the rights?

   > drwxr-xr-x 1 nixbld nixbld   156 Dec 16 15:52 .
   > drwx------ 1 nixbld nixbld    62 Dec 16 15:52 ..
   > drwxr-xr-x 1 nixbld nixbld     0 Jan  1  1970 .cargo
   > drwxr-xr-x 1 nixbld nixbld    34 Dec 16 15:52 .cargo-home
   > -rw-r--r-- 1 nixbld nixbld 54674 Dec 16 15:52 Cargo.lock
   > -rw-r--r-- 1 nixbld nixbld   730 Dec 16 15:52 Cargo.toml
   > -rw-r--r-- 1 nixbld nixbld    13 Dec 16 15:52 build.rs
   > drwxr-xr-x 1 nixbld nixbld    12 Jan  1  1970 src
   > drwxr-xr-x 1 nixbld nixbld     0 Dec 16 15:52 target
   > drwxr-xr-x 1 nixbld nixbld    42 Jan  1  1970 wilma
   > drwxr-xr-x 1 nixbld nixbld    42 Jan  1  1970 wilma-bin
   > drwxr-xr-x 1 nixbld nixbld    42 Jan  1  1970 wilma-wasm
15:54:55
@helle:tacobelllabs.nethelle (just a stray cat girl)I believe there is an implicit mode change done on src15:57:02
@helle:tacobelllabs.nethelle (just a stray cat girl)but I am probably misremembering the bug I had (my workaround doesn't apply anyway)15:57:22
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)ah15:59:43
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her):(15:59:49
@helle:tacobelllabs.nethelle (just a stray cat girl)one of the things, get a dir listing in the preBuild phase to see what the perms are there16:09:48
@mzerodev:matrix.orgZoe Zthe atticd fork is broken for me on 2.93.3 and 2.94.0 :(19:14:19
@raitobezarius:matrix.orgraitobezarius
In reply to @mzerodev:matrix.org
the atticd fork is broken for me on 2.93.3 and 2.94.0 :(
Which fork?
22:00:39
@mzerodev:matrix.orgZoe Zhttps://git.lix.systems/nrabulinski/attic is there another one? After consideration, I don't think I have a compelling reason to not just use the the upstream attic linked against cppnix though.23:31:47
17 Dec 2025
@raitobezarius:matrix.orgraitobezarius
In reply to @mzerodev:matrix.org
https://git.lix.systems/nrabulinski/attic is there another one? After consideration, I don't think I have a compelling reason to not just use the the upstream attic linked against cppnix though.
I actually am also working on one but it's more exploratory
00:59:18
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)
   > /nix/store/s3w5m3spa1g71hx0yb82lvk6394j3w5j-stdenv-linux/setup: line 1764: name: command not found
11:41:03
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)

wasmPackage =
(naersk.lib.${system}.override {
cargo = toolchain;
rustc = toolchain;
}).buildPackage
rec {
src = ./.;

            BINDGEN_EXTRA_CLANG_ARGS = "\
          -I${pkgs.glibc.dev}/include \
          -I${pkgs.glibc.dev}/include/x86_64-linux-gnu \
        ";
            LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";

            buildInputs = with pkgs; [
              wasm-tools
              wasm-bindgen-cli
              emscripten
              python3

              clangStdenv
            ];

            cargoBuild = _: ''
              rm -rf ./xtask
              cp -r ${./xtask} ./xtask

              [[bin]]
              name = "xtask"
              path = "src/main.rs"
              EOF
              cat ./xtask/Cargo.toml
              cargo run -p xtask -- wasm-bindgen imgui-sys-v0
              cargo run -p xtask -- web-demo
              cargo run -p xtask -- build-cimgui-provider
            '';

            installPhase = ''
              mkdir -p $out/bin
              cp -r target/web-demo $out/share/web-demo
              cat "python -m http.server -d $out/share/web-demo 8080" > $out/bin/run-wasm-web-demo
            '';

            meta.mainProgram = "run-wasm-web-demo";
          }
        // commonArgs;
11:41:21
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) *
    wasmPackage =
        (naersk.lib.${system}.override {
          cargo = toolchain;
          rustc = toolchain;
        }).buildPackage
          rec {
            src = ./.;

            BINDGEN_EXTRA_CLANG_ARGS = "\
          -I${pkgs.glibc.dev}/include \
          -I${pkgs.glibc.dev}/include/x86_64-linux-gnu \
        ";
            LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";

            buildInputs = with pkgs; [
              wasm-tools
              wasm-bindgen-cli
              emscripten
              python3

              clangStdenv
            ];

            cargoBuild = _: ''
              rm -rf ./xtask
              cp -r ${./xtask} ./xtask

              [[bin]]
              name = "xtask"
              path = "src/main.rs"
              EOF
              cat ./xtask/Cargo.toml
              cargo run -p xtask -- wasm-bindgen imgui-sys-v0
              cargo run -p xtask -- web-demo
              cargo run -p xtask -- build-cimgui-provider
            '';

            installPhase = ''
              mkdir -p $out/bin
              cp -r target/web-demo $out/share/web-demo
              cat "python -m http.server -d $out/share/web-demo 8080" > $out/bin/run-wasm-web-demo
            '';

            meta.mainProgram = "run-wasm-web-demo";
          }
        // commonArgs;
11:41:43
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)WHAT EVEN IS "name"?11:41:57
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)how can I configure naersk to keep the whole dir11:42:27
@niklaskorz:matrix.orgniklaskorz

https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/stdenv.chapter.md

Specifying a name and a src is the absolute minimum Nix requires. For convenience, you can also use pname and version attributes and mkDerivation will automatically set name to "${pname}-${version}" by default.

11:44:17
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)shouldnt it warm about that11:44:39
@niklaskorz:matrix.orgniklaskorzprobably 😅11:46:03
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)also11:46:26
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)does naersk do some weird source filtering11:46:32
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)because some stuff just doesnt exist in an naersk build env11:46:53
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)hmm11:46:55
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)from my $src11:47:01
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)ah11:49:00
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)it used the wrong commt11:49:03
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)
   > Running phase: buildPhase
   > cp -r /nix/store/jwszpfy7gbw4g971a5a7x9ac30p1mpny-2r7y1blikvpg0c0vk6npr74pag0lim48-source source
   > main.rs
   > error: Permission denied (os error 13) at path "/build/dummy-src/source/target1qJdQE"
   For full logs, run:
    nix log /nix/store/q5ymgcc7j6lqn8y5gh0ivfhwnf2i0365-rust-workspace-deps-unknown.drv

error: 1 dependencies of derivation '/nix/store/5psvv2fpzzn0j099h6il6m0lm6whdy2w-rust-workspace-unknown.drv

11:52:19
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)
   > cargo:rerun-if-changed=/nix/store/kl4w4f8bb77faahsdv40gjmfzg2d081d-clang-21.1.2-lib/lib/clang/21/include/__stdarg_va_arg.h
   > cargo:rerun-if-changed=/nix/store/kl4w4f8bb77faahsdv40gjmfzg2d081d-clang-21.1.2-lib/lib/clang/21/include/__stdarg___va_copy.h
   > cargo:rerun-if-changed=/nix/store/kl4w4f8bb77faahsdv40gjmfzg2d081d-clang-21.1.2-lib/lib/clang/21/include/__stdarg_va_copy.h
   > cargo:rerun-if-changed=/nix/store/kl4w4f8bb77faahsdv40gjmfzg2d081d-clang-21.1.2-lib/lib/clang/21/include/stdbool.h
   > xtask error: write bindings to /build/dummy-src/dear-imgui-sys/src/wasm_bindings_pregenerated.rs
   >
   > Caused by:
   >     Permission denied (os error 13)
   For full logs, run:
     nix log /nix/store/9w0bxj6mq1agkfh1na44pab6vld4
11:53:52
@cyphix:systemli.orgcyphix changed their profile picture.14:27:01

Show newer messages


Back to Room ListRoom Version: 10