| 17 Nov 2025 |
leona | ja ich dachte dich interessierts ^^ | 15:39:09 |
| 18 Nov 2025 |
| Grimmauld (any/all) joined the room. | 08:19:17 |
sebastians | nix-shell verhält sich bei mir gerade weird:
$ printenv SHLVL
1
$ nix-shell
fetching path input 'path:/nix/store/c39q7pww80997lz0fyqxpvsr29q6f7ld-source'
$ hello
bash: hello: command not found
$ printenv SHLVL
1
hier ist die shell.nix:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
hello
];
}
nix-shell -p hello funktioniert problemlos. hat jemand ne idee woran das liegen könnte?
| 13:17:38 |
hexa | hast du eine default.nix in dem ordenr? | 13:20:13 |
hexa | * hast du eine default.nix in dem ordner? | 13:20:16 |
sebastians | nope | 13:22:26 |
hexa | ah, du meinst du landest gar nicht erst in der shell | 13:24:06 |
hexa | ❯ mkdir repro
/tmp
❯ cd repro/
/tmp/repro
❯ hx shell.nix
/tmp/repro
❯ nix-shell
fetching path input 'path:/nix/store/g489k232fczc77km8m7wsdd97wxqdyd9-source'
this path will be fetched (0.05 MiB download, 0.26 MiB unpacked):
/nix/store/sqw9kyl8zrfnkklb3vp6gji9jw9qfgb5-hello-2.12.2
copying path '/nix/store/sqw9kyl8zrfnkklb3vp6gji9jw9qfgb5-hello-2.12.2' from 'https://cache.nixos.org'...
/tmp/repro via ❄️ impure (nix-shell)
❯ hello
Hello, world!
| 13:25:04 |
sebastians | genau - sorry hatte meinen prompt string entfernt | 13:25:18 |
hexa | leerer ordner, shell.nix reinkopiert, tut | 13:25:39 |
sebastians | ja, mein problem ist leider, dass der error nicht reproduzierbar ist :/ | 13:28:17 |
hexa | d.h. in einem frischen ordner gehts bei dir auch? 😄 | 13:28:31 |