diary

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

diary.nix (593B)


      1 let
      2   pkgs = import <nixpkgs> { };
      3 in
      4   pkgs.stdenv.mkDerivation {
      5     name = "diary";
      6     version = "v0.12";
      7     buildInputs = with pkgs; [
      8       pkg-config
      9       ncurses
     10       curlFull
     11       libxml2
     12       lttng-ust
     13     ];
     14 
     15     src = pkgs.fetchgit {
     16       url = "https://git.in0rdr.ch/diary.git";
     17       rev = "refs/tags/v0.13";
     18       hash = "sha256-s8r34e8ovq0D1/9IB9onfn7GeNWkCR+aofD+NblXla0=";
     19     };
     20 
     21     installPhase = ''
     22       install -d $out/bin
     23       install -d $out/share/man/man1
     24       install -m755 diary $out/bin/
     25       install -m644 man1/diary.1 $out/share/man/man1/
     26     '';
     27   }
     28