2020-07-21 17:19:46 +01:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
|
2021-01-29 00:20:16 +00:00
|
|
|
let version = "0.2.5"; 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}";
|
2021-01-29 00:20:16 +00:00
|
|
|
sha256 = "sha256-DdK9qdF+rFtAhemPwMpiZrtUdgD0iFqjgiZ3Yp/vLAI=";
|
2020-07-21 17:19:46 +01:00
|
|
|
};
|
2021-01-29 00:20:16 +00:00
|
|
|
cargoSha256 = "sha256-bdSXyxiHwGtdyce2YyPKq+3RfZIL425RvwRfKi59RVI=";
|
2020-07-21 17:19:46 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Scriptable, curses-based, digital habit tracker";
|
2020-07-21 17:19:46 +01:00
|
|
|
homepage = "https://github.com/NerdyPepper/dijo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|