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