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

22 lines
715 B
Nix
Raw Normal View History

2020-07-21 18:19:46 +02:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
2020-08-10 07:37:46 +02:00
let version = "0.2.3"; in
2020-07-21 18:19:46 +02: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 07:37:46 +02:00
sha256 = "1lcvj0pri5v64zygkf2p24vr72y39agrq1r3kb8dfgz8yy3vcz0a";
2020-07-21 18:19:46 +02:00
};
2020-08-10 07:37:46 +02:00
cargoSha256 = "0pm048xf8hkva8q8fjmhrdnk7h2im28ix7xy784xwkkdnilm4j7f";
2020-07-21 18:19:46 +02:00
meta = with lib; {
description = "Scriptable, curses-based, digital habit tracker.";
homepage = "https://github.com/NerdyPepper/dijo";
license = licenses.mit;
maintainers = with maintainers; [ infinisil ];
};
}