Created
October 18, 2021 19:36
-
-
Save j-steinbach/e1eef450fa8b1f469e11bedb8310399a to your computer and use it in GitHub Desktop.
A derivation to build ZK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/mickael-menu/zk | |
| with import <nixpkgs> {}; | |
| buildGoModule rec { | |
| pname = "zk"; | |
| version = "0.7.0"; | |
| commit = "9bd2eacf06eb84d608e941cd008363ef91374695"; | |
| shortcommit = "9bd2eac"; | |
| src = fetchFromGitHub { | |
| owner = "mickael-menu"; | |
| repo = "zk"; | |
| #rev = "v${version}"; | |
| rev = commit; | |
| sha256 = "C3/V4v8lH4F3S51egEw5d51AI0n5xzBQjwhrI64FEGA="; | |
| }; | |
| vendorSha256 = "AEFj7nf0CLheMGZSyl5DftZbvpIGUfl95w6aGino+Sk="; | |
| runVend = true; | |
| doCheck = false; | |
| tags = [ | |
| "fts5" | |
| "icu" | |
| ]; | |
| ldflags = [ | |
| "-X main.Version=${version}" | |
| "-X main.Build=${shortcommit}" | |
| ]; | |
| buildInputs = [icu]; | |
| meta = with lib; { | |
| description = "A plain text note-taking assistant"; | |
| homepage = "https://github.com/mickael-menu/zk"; | |
| platforms = platforms.linux; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment