Skip to content

Commit

Permalink
[default.nix] better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kolloch committed Nov 10, 2023
1 parent a69c994 commit 60ce8c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,11 @@ let
| head -n -1 \
| ${pkgs.nix}/bin/nix-store --load-db -j 1
# Sanitize time stamps
sqlite3 $PWD/nix/var/nix/db/db.sqlite \
'UPDATE ValidPaths SET registrationTime = 0;';
# Dump and reimport to ensure that the update order doesn't somehow change the DB.
sqlite3 $PWD/nix/var/nix/db/db.sqlite '.dump' > db.dump
mkdir -p $out/nix/var/nix/db/
sqlite3 $out/nix/var/nix/db/db.sqlite '.read db.dump'
Expand Down

0 comments on commit 60ce8c1

Please sign in to comment.