| 16 Dec 2025 |
| 0x4fbb09 it/its ⛯✇ΘΔ changed their display name from 522 it/its ⛯ΘΔ to 0x4fbb09 it/its ⛯✇ΘΔ. | 15:14:37 |
Sofie 🏳️⚧️ (she/her) | cargo = toolchain;
rustc = toolchain;
}).buildPackage rec {
src = ./.;
cargoBuild = old: ''
cd wilma-wasm
wasm-pack build \
--release \
--target web \
--mode no-install \
--package=wilma-wasm \
--out-dir $out
'';
buildInputs = [ pkgs.wasm-pack ];
};
| 15:51:10 |
Sofie 🏳️⚧️ (she/her) | * wasmPackage = (naersk.lib.${system}.override {
cargo = toolchain;
rustc = toolchain;
}).buildPackage rec {
src = ./.;
cargoBuild = old: ''
cd wilma-wasm
wasm-pack build \
--release \
--target web \
--mode no-install \
--package=wilma-wasm \
--out-dir $out
'';
buildInputs = [ pkgs.wasm-pack ];
};
| 15:51:18 |
Sofie 🏳️⚧️ (she/her) | ... what? | 15:51:23 |
Sofie 🏳️⚧️ (she/her) |
> Running phase: buildPhase
> cd wilma-wasm
> Error: Permission denied (os error 13)
> Caused by: Permission denied (os error 13)
For full logs, run:
| 15:51:32 |
Sofie 🏳️⚧️ (she/her) | *
> Running phase: buildPhase
> cd wilma-wasm
> Error: Permission denied (os error 13)
> Caused by: Permission denied (os error 13)
| 15:51:46 |
helle (just a stray cat girl) | oh... | 15:52:00 |
helle (just a stray cat girl) | is that the error we think it is, let me check | 15:52:46 |
Sofie 🏳️⚧️ (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 (just a stray cat girl) | I believe there is an implicit mode change done on src | 15:57:02 |
helle (just a stray cat girl) | but I am probably misremembering the bug I had (my workaround doesn't apply anyway) | 15:57:22 |
Sofie 🏳️⚧️ (she/her) | ah | 15:59:43 |
Sofie 🏳️⚧️ (she/her) | :( | 15:59:49 |
helle (just a stray cat girl) | one of the things, get a dir listing in the preBuild phase to see what the perms are there | 16:09:48 |
Zoe Z | the atticd fork is broken for me on 2.93.3 and 2.94.0 :( | 19:14:19 |
raitobezarius | 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 |
Zoe Z | 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. | 23:31:47 |
| 17 Dec 2025 |
raitobezarius | 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 |
Sofie 🏳️⚧️ (she/her) | > /nix/store/s3w5m3spa1g71hx0yb82lvk6394j3w5j-stdenv-linux/setup: line 1764: name: command not found
| 11:41:03 |
Sofie 🏳️⚧️ (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 |
Sofie 🏳️⚧️ (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 |
Sofie 🏳️⚧️ (she/her) | WHAT EVEN IS "name"? | 11:41:57 |
Sofie 🏳️⚧️ (she/her) | how can I configure naersk to keep the whole dir | 11:42:27 |
niklaskorz | 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 |
Sofie 🏳️⚧️ (she/her) | shouldnt it warm about that | 11:44:39 |
niklaskorz | probably 😅 | 11:46:03 |
Sofie 🏳️⚧️ (she/her) | also | 11:46:26 |
Sofie 🏳️⚧️ (she/her) | does naersk do some weird source filtering | 11:46:32 |
Sofie 🏳️⚧️ (she/her) | because some stuff just doesnt exist in an naersk build env | 11:46:53 |
Sofie 🏳️⚧️ (she/her) | hmm | 11:46:55 |