diary

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

commit 3e5571ffcd2c19bdac1aedc8d339252c66f7bded
parent 6839d76bb4a622360eb92826caf5c789a6b9517f
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Mon, 15 Apr 2024 20:10:00 +0200

doc(nix): document nix build/install

Diffstat:
MREADME.md | 3+++
Adocs/NIX.md | 24++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -106,6 +106,9 @@ Server = https://downloadcontent.opensuse.org/repositories/home:/in0rdr/Arch/$ar path prefix, type `sudo make PREFIX=/usr install` to use `/usr/bin` for example. You can uninstall diary with `sudo make uninstall`. +## Nix Build/Install Documentation +[./docs/NIX.md](./docs/NIX.md) + ## OBS Build Documentation [./docs/OBS.md](./docs/OBS.md) diff --git a/docs/NIX.md b/docs/NIX.md @@ -0,0 +1,24 @@ +# Nix build documentation + +## Build instructions + +To build the (un)stable packages for Nix: + +```bash +# Build stable package +nix-build nix/diary.nix + +# Build latest nightly version +nix-build nix/diary-unstable.nix +``` + +## Installation instructions + +To install the package from the expression file to the user environment: +```bash +# Install stable package +nix-env -i -f nix/diary.nix + +# Install latest nightly version +nix-env -i -f nix/diary-unstable.nix +```