| 27 Apr 2025 |
vaw | That find statement is wild. | 18:51:21 |
Adam Neverwas | It can do wild stuff, i tried to find the libudev.pc and place it into the path, this whole nix and flake stuff is new to me, i have to change a bit my thinking | 18:54:27 |
Adam Neverwas | like whats happpening | 18:54:49 |
Adam Neverwas | but i have a lot to do | 18:56:10 |
K900 | Literally none of that is necessary | 18:57:02 |
K900 | Most of it doesn't make any sense | 18:57:27 |
Ilan Joselevich (Kranzes) | just start with something like this | 18:57:56 |
Ilan 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 | Start with the example shell bevy gives you | 18:58:10 |
K900 | That was linked here earlier | 18:58:13 |
Ilan Joselevich (Kranzes) | understand the fundumentals first | 18:58:18 |
Ilan Joselevich (Kranzes) | no magic | 18:58:21 |
Adam Neverwas | its working now | 18:58:22 |
Adam Neverwas | I mean i have rust-analyzer, finally | 18:58:37 |
@curid:matrix.org | how would one learn the fundamentals? | 18:59:20 |
Ilan Joselevich (Kranzes) | start from scratch | 18:59:44 |
Ilan Joselevich (Kranzes) | write it yourself | 18:59:46 |
Ilan Joselevich (Kranzes) | make sure you understand what each function is | 18:59:54 |
Adam Neverwas | fundumentals first | 18:59:56 |
Ilan Joselevich (Kranzes) | and most importantly, close any tab with an LLM | 19:00:14 |
@awwpotato:envs.net | https://nix.dev/ is best resource to start with | 19:00:32 |
Ilan Joselevich (Kranzes) | Not sure if it teaches flakes | 19:00:57 |
@curid:matrix.org | don't i need to learn what a function is first? | 19:00:58 |
Ilan 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 | it only mentions them | 19:01:45 |
Ilan Joselevich (Kranzes) | * (x: x + 1) 3 | 19:01:45 |
@curid:matrix.org | how would one find documentation for the pkgs.writeScriptBin function for example? | 19:04:31 |
Adam Neverwas | Learn whats documentation first | 19:05:27 |
@awwpotato:envs.net | https://nixos.org/manual/nixpkgs/unstable/#trivial-builder-writeScriptBin | 19:05:40 |
Ilan Joselevich (Kranzes) | https://noogle.dev | 19:07:00 |