https://github.com/numtide/nix-eval-cache
Skips build/evaluation based on modification date of nix files.
https://github.com/numtide/nix-eval-cache
Last synced: 10 months ago
JSON representation
Skips build/evaluation based on modification date of nix files.
- Host: GitHub
- URL: https://github.com/numtide/nix-eval-cache
- Owner: numtide
- Created: 2022-04-08T13:32:47.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T09:34:14.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T09:48:24.767Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 21
- Watchers: 9
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-eval-cache
Status: alpha
skips build/evaluation based on modification date of nix files.
Usage:
```console
$ cat > foo.nix < {};
pkgs.hello
EOF
$ cargo build
$ time ./target/debug/nix-eval-cache result nix-build foo.nix
/nix/store/g124820p9hlv4lj8qplzxw1c44dxaw1k-hello-2.12
./target/debug/nix-eval-cache result nix-build foo.nix 0,42s user 0,12s system 82% cpu 0,657 total
$ time ./target/debug/nix-eval-cache result nix-build foo.nix
skip build
./target/debug/nix-eval-cache result nix-build foo.nix 0,00s user 0,01s system 91% cpu 0,009 total
```