2021-10-28 06:52:43 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, icu }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zk";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.14.1";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-06-05 15:53:02 +00:00
|
|
|
owner = "zk-org";
|
2021-10-28 06:52:43 +00:00
|
|
|
repo = "zk";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-PbF2k7b03Oo3fIWIN4BHUZJ625HUeX+htT9FTINowIs=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-UZsJa5hmMQwe9lhrp4ey8GGTkWUF8xJW+LPWMR0qfoo=";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
CGO_ENABLED = 1;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.Build=${version}" "-X=main.Version=${version}"];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
tags = [ "fts5" ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
maintainers = with maintainers; [ pinpox ];
|
|
|
|
license = licenses.gpl3;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Zettelkasten plain text note-taking assistant";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/mickael-menu/zk";
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "zk";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|