diary-unstable.nix (555B)
1 let 2 pkgs = import <nixpkgs> { }; 3 in 4 pkgs.stdenv.mkDerivation { 5 name = "diary"; 6 version = "v0.16-unstable"; 7 buildInputs = with pkgs; [ 8 pkg-config 9 ncurses 10 curlFull 11 libxml2 12 ]; 13 14 src = pkgs.fetchgit { 15 url = "https://git.in0rdr.ch/diary.git"; 16 hash = "sha256-DWiwr7htuDtSHII/i4xd5Rsirt3nRjtxl66rATcR05c="; 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