nixpkgs/pkgs/tools/misc/dijo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
693 B
Nix
Raw Normal View History

2020-07-21 18:19:46 +02:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
2021-07-14 17:10:11 +02:00
rustPlatform.buildRustPackage rec {
2020-07-21 18:19:46 +02:00
pname = "dijo";
2021-07-14 17:10:11 +02:00
version = "0.2.7";
2020-07-21 18:19:46 +02:00
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
src = fetchFromGitHub {
owner = "NerdyPepper";
repo = "dijo";
rev = "v${version}";
2021-03-10 21:26:01 +01:00
sha256 = "sha256-g+A8BJxqoAvm9LTLrLnClVGtFJCQ2gT0mDGAov/6vXE=";
2020-07-21 18:19:46 +02:00
};
cargoSha256 = "sha256-o3+KcE7ozu6eUgwsOSr9DOoIo+/BZ3bJZe+WYQLXHpY=";
2020-07-21 18:19:46 +02:00
meta = with lib; {
description = "Scriptable, curses-based, digital habit tracker";
2020-07-21 18:19:46 +02:00
homepage = "https://github.com/NerdyPepper/dijo";
license = licenses.mit;
maintainers = with maintainers; [ infinisil ];
};
}