2021-10-27 21:16:02 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, icu }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zk";
|
2021-11-22 06:45:07 +00:00
|
|
|
version = "0.8.0";
|
2021-10-27 21:16:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mickael-menu";
|
|
|
|
repo = "zk";
|
|
|
|
rev = "v${version}";
|
2021-11-22 06:45:07 +00:00
|
|
|
sha256 = "sha256-lTg5jB3krZWmCn3wWoAwzqBji1AyTTTVf/BphC7Mr5s=";
|
2021-10-27 21:16:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-m7QGv8Vx776TsN7QHXtO+yl3U1D573UMZVyg1B4UeIk=";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ icu ];
|
|
|
|
|
|
|
|
CGO_ENABLED = 1;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.Build=${version}" ];
|
|
|
|
|
|
|
|
tags = [ "fts5" "icu" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
maintainers = with maintainers; [ pinpox ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
description = "A zettelkasten plain text note-taking assistant";
|
|
|
|
homepage = "https://github.com/mickael-menu/zk";
|
|
|
|
};
|
|
|
|
}
|