!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

677 Members
Rust153 Servers

Load older messages


SenderMessageTime
27 Apr 2025
@kranzes:matrix.orgIlan Joselevich (Kranzes)just start with something like this18:57:56
@kranzes:matrix.orgIlan Joselevich (Kranzes)
{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

  outputs =
    inputs:
    let
      system = "x86_64-linux";
      pkgs = inputs.nixpkgs.legacyPackages.${system};
    in
    {
      devShells.${system}.default = pkgs.mkShell {
        packages = with pkgs; [
          rustc
          cargo
        ];
      };
    };
}
18:57:59
@k900:0upti.meK900Start with the example shell bevy gives you18:58:10
@k900:0upti.meK900That was linked here earlier18:58:13
@kranzes:matrix.orgIlan Joselevich (Kranzes)understand the fundumentals first18:58:18
@kranzes:matrix.orgIlan Joselevich (Kranzes)no magic18:58:21
@adam_neverwas:matrix.orgAdam Neverwas its working now 18:58:22
@adam_neverwas:matrix.orgAdam Neverwas I mean i have rust-analyzer, finally 18:58:37
@curid:matrix.org@curid:matrix.orghow would one learn the fundamentals?18:59:20
@kranzes:matrix.orgIlan Joselevich (Kranzes)start from scratch18:59:44
@kranzes:matrix.orgIlan Joselevich (Kranzes)write it yourself18:59:46
@kranzes:matrix.orgIlan Joselevich (Kranzes)make sure you understand what each function is18:59:54
@adam_neverwas:matrix.orgAdam Neverwas fundumentals first 18:59:56
@kranzes:matrix.orgIlan Joselevich (Kranzes)and most importantly, close any tab with an LLM19:00:14
@awwpotato:envs.net@awwpotato:envs.nethttps://nix.dev/ is best resource to start with19:00:32
@kranzes:matrix.orgIlan Joselevich (Kranzes)Not sure if it teaches flakes19:00:57
@curid:matrix.org@curid:matrix.orgdon't i need to learn what a function is first?19:00:58
@kranzes:matrix.orgIlan Joselevich (Kranzes)
In reply to @curid:matrix.org
don't i need to learn what a function is first?
x: x + 1
19:01:25
@awwpotato:envs.net@awwpotato:envs.netit only mentions them19:01:45
@kranzes:matrix.orgIlan Joselevich (Kranzes)* (x: x + 1) 319:01:45
@curid:matrix.org@curid:matrix.org how would one find documentation for the pkgs.writeScriptBin function for example? 19:04:31
@adam_neverwas:matrix.orgAdam Neverwas Learn whats documentation first 19:05:27
@awwpotato:envs.net@awwpotato:envs.nethttps://nixos.org/manual/nixpkgs/unstable/#trivial-builder-writeScriptBin19:05:40
@kranzes:matrix.orgIlan Joselevich (Kranzes) https://noogle.dev 19:07:00
@n8henrie:matrix.orgn8henrie joined the room.23:11:04
28 Apr 2025
@charlotte:vanpetegem.mechvp left the room.14:30:22
29 Apr 2025
@yaya:uwu.is@yaya:uwu.is left the room.11:21:45
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their display name from This LEGO® Worm™ is licensed under the terms of the he/him or they/them pronouns, at your choice to This legally distinct plastic brick is licensed under the terms of the he/him or they/them pronouns, at your choice.14:41:15
@anjix:matrix.organji joined the room.19:11:31
@n8henrie:matrix.orgn8henrie

Didn't get any bites in the main channel --

I've been hoping to get this PR working for darwin -- a python / rust (via maturin / PyO3) project that I think just needs to enable the system feature of the libffi-sys crate (same fix as https://github.com/NixOS/nixpkgs/pull/368102).

Unfortunately in this case the libffi-sys crate is a few dependencies deep, and the parent packages don't expose any feature flags to enable libffi/system (which enables libffi-sys/system):

$ cargo tree -i libffi-sys
libffi-sys v3.2.0
├── deno_ffi v0.190.0
│   └── deno_runtime v0.211.0
│       └── vl-convert-rs v1.7.0 (/private/tmp/nix-build-python3.12-vl-convert-python-1.7.0.drv-0/source/vl-convert-rs)
│           ├── vl-convert v1.7.0 (/private/tmp/nix-build-python3.12-vl-convert-python-1.7.0.drv-0/source/vl-convert)
│           └── vl-convert-python v1.7.0 (/private/tmp/nix-build-python3.12-vl-convert-python-1.7.0.drv-0/source/vl-convert-python)
└── libffi v4.0.0
    └── deno_ffi v0.190.0 (*)

Any suggestions for enabling this feature flag a few dependency layers deep?

19:41:12

Show newer messages


Back to Room ListRoom Version: 6