2020-08-20 17:08:02 +00:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
|
2021-02-24 18:30:23 +00:00
|
|
|
let version = "0.2.6"; in
|
2020-08-20 17:08:02 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "dijo";
|
|
|
|
inherit version;
|
|
|
|
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NerdyPepper";
|
|
|
|
repo = "dijo";
|
|
|
|
rev = "v${version}";
|
2021-02-24 18:30:23 +00:00
|
|
|
sha256 = "sha256-fdPl+3NjgVE2MRopzeN/bxbVP6HaTnyJTGFWsLhlRoQ=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
2021-02-24 18:30:23 +00:00
|
|
|
cargoSha256 = "sha256-45YfZWncT7hNiOhlAatpdFdxgBaF83sih67B/DPNHcs=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Scriptable, curses-based, digital habit tracker";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/NerdyPepper/dijo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|