3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/todoist/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
634 B
Nix
Raw Normal View History

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