1 { stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
3 rustPlatform.buildRustPackage rec {
6 buildInputs = [ ncurses ] ++ lib.optional stdenv.hostPlatform.isDarwin CoreServices;
7 src = fetchFromGitHub {
11 sha256 = "sha256-g+A8BJxqoAvm9LTLrLnClVGtFJCQ2gT0mDGAov/6vXE=";
13 cargoHash = "sha256-o3+KcE7ozu6eUgwsOSr9DOoIo+/BZ3bJZe+WYQLXHpY=";
16 description = "Scriptable, curses-based, digital habit tracker";
17 homepage = "https://github.com/NerdyPepper/dijo";
18 license = licenses.mit;