nixpkgs/pkgs/applications/misc/todoist/default.nix
Mark Sagi-Kazar 079827e8c3
todoist: 0.15.0 -> 0.16.0
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-11-28 17:33:30 +01:00

28 lines
634 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "todoist";
version = "0.16.0";
src = fetchFromGitHub {
owner = "sachaos";
repo = "todoist";
rev = "v${version}";
sha256 = "sha256-cfhwbL7RaeD5LWxlfqnHfPPPkC5AA3Z034p+hlFBWtg=";
};
vendorSha256 = "sha256-ly+OcRo8tGeNX4FnqNVaqjPx/A1FALOnScxs04lIOiU=";
doCheck = false;
postPatch = ''
substituteInPlace main.go --replace '0.15.0' '${version}'
'';
meta = {
homepage = "https://github.com/sachaos/todoist";
description = "Todoist CLI Client";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}