Jonas Chevalier

Results 831 comments of Jonas Chevalier

The issue is that `isDirectory` will include all the directories, even if they don't contain .md files. Imagine you add a ./photos folder in your zettelkasten that only includes .jpeg...

These filters need to be super precise in order to minimize rebuilds. The best way to do this is to make them easy to maintain and debug.

thanks. It looks like a similar idea as https://github.com/numtide/nix-filter/issues/9#issuecomment-1194442257 where the algorithm first traverses the filesystem using `builtins.readDir`, and then applies the filtered result to `builtins.path`. It's a good idea.

It would take a few days of work to assess and come up with a composable design properly. It's not something I planned to address, unless it comes up as...

There is also the .ls file that could be used to provide the file hierarchy without downloading the NAR. If the NAR itself is uncompressed you could do Range requests.

At the moment, an additional `shell.nix` file has to be added with the following content: ```nix { system ? builtins.currentSystem }: (import ./. { src = ./.; inherit system; }).shellNix...

It's quite close to being a poly-fill for `builtins.getFlake`, but not quite. It would need to output `result` without the `defaultNix` and `shellNix` attributes. And the input parameters aren't exactly...

``` $ time nix eval --read-only .#devShell.outPath "/nix/store/7lis84h4z27q8xm88va0slbix847pz3k-treefmt" real 0m1.252s user 0m1.079s sys 0m0.121s ``` 1.25s is quite fast but slow if it happens on every prompt. Another approach I...

Just saw this as well: https://github.com/xzfc/cached-nix-shell

If we can translate CLI arguments to function calls, it's possible to build functions that work for common cases. This assumes some cooperation between nixpkgs and the nix CLI. Eg:...