@@ -0,0 +1,22 @@
1+{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
2+let version = "0.1.5"; in
3+rustPlatform.buildRustPackage {
4+ pname = "dijo";
5+ inherit version;
6+ buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
7+ src = fetchFromGitHub {
8+ owner = "NerdyPepper";
9+ repo = "dijo";
10+ rev = "v${version}";
11+ sha256 = "1ch320j2d66zn9mbs7xl0bkfcm2hpak6izk0yspz1gcji1l7grsc";
12+ };
13+ cargoSha256 = "1p6apz3wd4gqp0z24ygfw8nmpkh44d000jp6x7svqzmpphnmb0ji";
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+ platforms = platforms.all;
21+ };
22+}