2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-02-11 13:56:30 +00:00
|
|
|
|
2019-03-14 01:03:51 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "todoist";
|
2021-11-28 10:19:53 +00:00
|
|
|
version = "0.16.0";
|
2019-02-11 13:56:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sachaos";
|
|
|
|
repo = "todoist";
|
|
|
|
rev = "v${version}";
|
2021-11-28 10:19:53 +00:00
|
|
|
sha256 = "sha256-cfhwbL7RaeD5LWxlfqnHfPPPkC5AA3Z034p+hlFBWtg=";
|
2019-02-11 13:56:30 +00:00
|
|
|
};
|
|
|
|
|
2021-11-28 10:19:53 +00:00
|
|
|
vendorSha256 = "sha256-ly+OcRo8tGeNX4FnqNVaqjPx/A1FALOnScxs04lIOiU=";
|
2019-02-11 13:56:30 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-28 10:19:53 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace main.go --replace '0.15.0' '${version}'
|
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sachaos/todoist";
|
2019-02-11 13:56:30 +00:00
|
|
|
description = "Todoist CLI Client";
|
2020-03-27 07:33:21 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
2019-02-11 13:56:30 +00:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|