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

23 lines
746 B
Nix
Raw Normal View History

2020-07-21 17:19:46 +01:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
2020-08-01 01:36:05 +01:00
let version = "0.2.2"; 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}";
2020-08-01 01:36:05 +01:00
sha256 = "1al2dfrfxw39m9q636h47dnypcwkhp9bw01hvy7d9b69kskb21db";
2020-07-21 17:19:46 +01:00
};
2020-08-01 01:36:05 +01:00
cargoSha256 = "0a2l0ynjj9wl86aawm0l0rbdkm8j3a2n0nm6ysyxamaip0q5y1ql";
2020-07-21 17:19:46 +01:00
meta = with lib; {
description = "Scriptable, curses-based, digital habit tracker.";
homepage = "https://github.com/NerdyPepper/dijo";
license = licenses.mit;
maintainers = with maintainers; [ infinisil ];
platforms = platforms.all;
};
}