lol
1{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "dijo";
5 version = "0.2.7";
6 buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
7 src = fetchFromGitHub {
8 owner = "NerdyPepper";
9 repo = "dijo";
10 rev = "v${version}";
11 sha256 = "sha256-g+A8BJxqoAvm9LTLrLnClVGtFJCQ2gT0mDGAov/6vXE=";
12 };
13 cargoSha256 = "sha256-o3+KcE7ozu6eUgwsOSr9DOoIo+/BZ3bJZe+WYQLXHpY=";
14
15 meta = with lib; {
16 description = "Scriptable, curses-based, digital habit tracker";
17 homepage = "https://github.com/NerdyPepper/dijo";
18 license = licenses.mit;
19 maintainers = with maintainers; [ infinisil ];
20 };
21}