!9IQChSjwSHXPPWTa:lix.systems

Lix

1108 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
15 Dec 2025
@lotte:chir.rsLotte (it/its)/Cinny (she/her)the problem is that they are empty files…not symlinks20:58:54
@lotte:chir.rsLotte (it/its)/Cinny (she/her)however it used to create symlinks instead. yet the code hasn’t changed at all. what the fuck20:59:35
16 Dec 2025
@vczf:matrix.orgvczf *

A little confused that my nix.package config elsewhere isn’t carrying over to the callPackage invocation however
Edit: it’s the way I’m instantiating nixpkgs I think

Edit’: I confused nix.package (daemon version etc) for pkgs.nix (default “stable” nix for hydra etc). So unless I overlay lix as pkgs.nix (bad idea probably?) I have to explicitly set nix to lix in disko’s package, or accept running pkgs.nix for disko as is and just add pipe-operators experimental feature flag

00:45:21
@aloisw:julia0815.dealoisw
In reply to @helle:tacobelllabs.net
even though iirc at one point I was the only dev doing either non-NixOS or non-MacOS :P and running into all the fun bugs
What is your system?
06:23:57
@helle:tacobelllabs.nethelle (just a stray cat girl)
In reply to @aloisw:julia0815.de
What is your system?
I have Lix on top of Arch mainly (though that is going out the quickest) and then also on Debian and Devuan (no systemd nakes for fun, fully works with only minor gotchas btw) systems
06:44:20
@helle:tacobelllabs.nethelle (just a stray cat girl)though my main system these day is a newer laptop running nixoa as that was also all on hardware so old my iteration time was 20 minutes on lix build and test06:45:29
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔ changed their display name from 522 it/its ⛯ΘΔ to 0x4fbb09 it/its ⛯✇ΘΔ.15:14:37
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (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
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (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
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)... what?15:51:23
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (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
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (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: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

Show newer messages


Back to Room ListRoom Version: 10