depot/third_party/nixpkgs/pkgs/tools/misc/dijo/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

21 lines
712 B
Nix

{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
let version = "0.2.7"; in
rustPlatform.buildRustPackage {
pname = "dijo";
inherit version;
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
src = fetchFromGitHub {
owner = "NerdyPepper";
repo = "dijo";
rev = "v${version}";
sha256 = "sha256-g+A8BJxqoAvm9LTLrLnClVGtFJCQ2gT0mDGAov/6vXE=";
};
cargoSha256 = "sha256-o3+KcE7ozu6eUgwsOSr9DOoIo+/BZ3bJZe+WYQLXHpY=";
meta = with lib; {
description = "Scriptable, curses-based, digital habit tracker";
homepage = "https://github.com/NerdyPepper/dijo";
license = licenses.mit;
maintainers = with maintainers; [ infinisil ];
};
}