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