diary

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

commit 6839d76bb4a622360eb92826caf5c789a6b9517f
parent a6bd10ef7148c500e7d30ed5e63ec1e5cf3b8b80
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Mon, 15 Apr 2024 19:54:49 +0200

feat(nix): add stable/unstable build files

Diffstat:
Ddefault.nix | 20--------------------
Anix/diary-unstable.nix | 25+++++++++++++++++++++++++
Anix/diary.nix | 26++++++++++++++++++++++++++
3 files changed, 51 insertions(+), 20 deletions(-)

diff --git a/default.nix b/default.nix @@ -1,20 +0,0 @@ -let - pkgs = import <nixpkgs> { }; -in - pkgs.stdenv.mkDerivation { - name = "diary"; - version = "v0.10-nightly"; - buildInputs = with pkgs; [ - ncurses - curlFull - lttng-ust - ]; - - src = ./.; - - installPhase = '' - mkdir -p $out/bin - cp diary $out/bin/diary - ''; - } - diff --git a/nix/diary-unstable.nix b/nix/diary-unstable.nix @@ -0,0 +1,25 @@ +let + pkgs = import <nixpkgs> { }; +in + pkgs.stdenv.mkDerivation { + name = "diary"; + version = "v0.11-unstable"; + buildInputs = with pkgs; [ + ncurses + curlFull + lttng-ust + ]; + + src = pkgs.fetchgit { + url = "https://git.in0rdr.ch/diary.git"; + hash = "sha256-laKIVxfqJqBkB2d0F8tOOnpAXXRzHFfpjhAzZT8MX8k="; + }; + + installPhase = '' + install -d $out/bin + install -d $out/share/man/man1 + install -m755 diary $out/bin/ + install -m644 man1/diary.1 $out/share/man/man1/ + ''; + } + diff --git a/nix/diary.nix b/nix/diary.nix @@ -0,0 +1,26 @@ +let + pkgs = import <nixpkgs> { }; +in + pkgs.stdenv.mkDerivation { + name = "diary"; + version = "v0.10"; + buildInputs = with pkgs; [ + ncurses + curlFull + lttng-ust + ]; + + src = pkgs.fetchgit { + url = "https://git.in0rdr.ch/diary.git"; + rev = "refs/tags/v0.10"; + hash = "sha256-jDPfqUjf0ZETYqPxvEJ2/YFFjNsF7yvVQiThc5yMvjc="; + }; + + installPhase = '' + install -d $out/bin + install -d $out/share/man/man1 + install -m755 diary $out/bin/ + install -m644 man1/diary.1 $out/share/man/man1/ + ''; + } +