diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 21a4679959d797c083ddcc3dffe2ab1dcbd84a94
parent 3e5571ffcd2c19bdac1aedc8d339252c66f7bded
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Mon, 13 May 2024 20:03:34 +0200

doc(nix): prefetch latest commit hash

Diffstat:
Mdocs/NIX.md | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/docs/NIX.md b/docs/NIX.md @@ -1,7 +1,15 @@ # Nix build documentation -## Build instructions +## Notes for nightly builds +Before building or installing the unstable release, replace the hash of the +current HEAD in the nix expression file. + +```bash +hash=$(nix-prefetch-git --quiet https://git.in0rdr.ch/diary.git | jq -r .hash) +sed -i "s~<PREFETCH_HASH>~$hash~" nix/diary-unstable.nix +``` +## Build instructions To build the (un)stable packages for Nix: ```bash @@ -13,7 +21,6 @@ nix-build nix/diary-unstable.nix ``` ## Installation instructions - To install the package from the expression file to the user environment: ```bash # Install stable package