2020-07-21 17:19:46 +01:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
|
2021-07-14 16:10:11 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-07-21 17:19:46 +01:00
|
|
|
pname = "dijo";
|
2021-07-14 16:10:11 +01:00
|
|
|
version = "0.2.7";
|
2020-07-21 17:19:46 +01:00
|
|
|
buildInputs = [ ncurses ] ++ lib.optional stdenv.hostPlatform.isDarwin CoreServices;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NerdyPepper";
|
|
|
|
repo = "dijo";
|
|
|
|
rev = "v${version}";
|
2021-03-10 20:26:01 +00:00
|
|
|
sha256 = "sha256-g+A8BJxqoAvm9LTLrLnClVGtFJCQ2gT0mDGAov/6vXE=";
|
2020-07-21 17:19:46 +01:00
|
|
|
};
|
2024-07-02 10:04:59 +01:00
|
|
|
cargoHash = "sha256-o3+KcE7ozu6eUgwsOSr9DOoIo+/BZ3bJZe+WYQLXHpY=";
|
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;
|
2024-04-09 16:26:37 +01:00
|
|
|
maintainers = [ ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "dijo";
|
2020-07-21 17:19:46 +01:00
|
|
|
};
|
|
|
|
}
|