2020-07-21 17:19:46 +01:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
|
2020-08-10 06:37:46 +01:00
|
|
|
let version = "0.2.3"; in
|
2020-07-21 17:19:46 +01:00
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "dijo";
|
|
|
|
inherit version;
|
|
|
|
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NerdyPepper";
|
|
|
|
repo = "dijo";
|
|
|
|
rev = "v${version}";
|
2020-08-10 06:37:46 +01:00
|
|
|
sha256 = "1lcvj0pri5v64zygkf2p24vr72y39agrq1r3kb8dfgz8yy3vcz0a";
|
2020-07-21 17:19:46 +01:00
|
|
|
};
|
2020-08-10 06:37:46 +01:00
|
|
|
cargoSha256 = "0pm048xf8hkva8q8fjmhrdnk7h2im28ix7xy784xwkkdnilm4j7f";
|
2020-07-21 17:19:46 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Scriptable, curses-based, digital habit tracker.";
|
|
|
|
homepage = "https://github.com/NerdyPepper/dijo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|